ISelectionService::PrimarySelection Property

 

Gets the object that is currently the primary selected object.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

property Object^ PrimarySelection {
	Object^ get();
}

Property Value

Type: System::Object^

The object that is currently the primary selected object.

When multiple components are selected at design time, one of the objects is the primary selected object. Some operations behave differently depending on which selected component is the primary selected object. The primary selected object is typically the last object that was selected, but the primary object of a multiple component selection can be changed to any of the selected components. The primary selected object has a selection border that is distinct in appearance from the other selected objects. The specific type of visual distinction depends on the development environment's implementation of a selection user interface.

.NET Framework
Available since 1.1
Return to top
Show: