ISelectionService::GetComponentSelected Method (Object^)

 

Gets a value indicating whether the specified component is currently selected.

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

bool GetComponentSelected(
	Object^ component
)

Parameters

component
Type: System::Object^

The component to test.

Return Value

Type: System::Boolean

true if the component is part of the user's current selection; otherwise, false.

This method can be used to check whether a specific component is currently selected. This process is generally quicker than getting and parsing the entire list of selected components.

.NET Framework
Available since 1.1
Return to top
Show: