ISelectionService.SetSelectedComponents ISelectionService.SetSelectedComponents ISelectionService.SetSelectedComponents ISelectionService.SetSelectedComponents Method

Definition

Selects the specified components.

Overloads

SetSelectedComponents(ICollection) SetSelectedComponents(ICollection) SetSelectedComponents(ICollection) SetSelectedComponents(ICollection)

Selects the specified collection of components.

SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes)

Selects the components from within the specified collection of components that match the specified selection type.

SetSelectedComponents(ICollection) SetSelectedComponents(ICollection) SetSelectedComponents(ICollection) SetSelectedComponents(ICollection)

Selects the specified collection of components.

public:
 void SetSelectedComponents(System::Collections::ICollection ^ components);
public void SetSelectedComponents (System.Collections.ICollection components);
abstract member SetSelectedComponents : System.Collections.ICollection -> unit
Public Sub SetSelectedComponents (components As ICollection)

Parameters

components
ICollection ICollection ICollection ICollection

The collection of components to select.

Remarks

If the array is null or does not contain any components, SetSelectedComponents selects the top-level component in the designer.

SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes) SetSelectedComponents(ICollection, SelectionTypes)

Selects the components from within the specified collection of components that match the specified selection type.

public:
 void SetSelectedComponents(System::Collections::ICollection ^ components, System::ComponentModel::Design::SelectionTypes selectionType);
public void SetSelectedComponents (System.Collections.ICollection components, System.ComponentModel.Design.SelectionTypes selectionType);
abstract member SetSelectedComponents : System.Collections.ICollection * System.ComponentModel.Design.SelectionTypes -> unit
Public Sub SetSelectedComponents (components As ICollection, selectionType As SelectionTypes)

Parameters

components
ICollection ICollection ICollection ICollection

The collection of components to select.

selectionType
SelectionTypes SelectionTypes SelectionTypes SelectionTypes

A value from the SelectionTypes enumeration. The default is Normal.

Remarks

If the array is null or does not contain any components, SetSelectedComponents selects the top-level component in the designer.

See also

Applies to