ISelectionService.SetSelectedComponents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om