Редагувати

Поділитися через


ISelectionService.SetSelectedComponents Method

Definition

Selects the specified components.

Overloads

SetSelectedComponents(ICollection)

Selects the specified collection of components.

SetSelectedComponents(ICollection, SelectionTypes)

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

SetSelectedComponents(ICollection)

Selects the specified collection of components.

public:
 void SetSelectedComponents(System::Collections::ICollection ^ 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

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.

Applies to

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);
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

The collection of components to select.

selectionType
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