ISelectionService.SetSelectedComponents 方法

定義

選取指定的元件。

多載

SetSelectedComponents(ICollection)

選取指定的元件集合。

SetSelectedComponents(ICollection, SelectionTypes)

從符合指定選取類型的指定元件集合中,選取元件。

SetSelectedComponents(ICollection)

選取指定的元件集合。

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)

參數

components
ICollection

選取的元件集合。

備註

如果數位是 null 或不包含任何元件, SetSelectedComponents 請選取設計工具中的最上層元件。

適用於

SetSelectedComponents(ICollection, SelectionTypes)

從符合指定選取類型的指定元件集合中,選取元件。

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)

參數

components
ICollection

選取的元件集合。

selectionType
SelectionTypes

SelectionTypes 列舉中的值。 預設為 Normal

備註

如果數位是 null 或不包含任何元件, SetSelectedComponents 請選取設計工具中的最上層元件。

另請參閱

適用於