Compartilhar via


ModelingWindowPane.SetSelectedComponents Method (ICollection)

Adds the specified components into the selection container and notifies the shell of the selection change.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
Public Overridable Sub SetSelectedComponents ( _
    components As ICollection _
)
public virtual void SetSelectedComponents(
    ICollection components
)
public:
virtual void SetSelectedComponents(
    ICollection^ components
)
abstract SetSelectedComponents : 
        components:ICollection -> unit 
override SetSelectedComponents : 
        components:ICollection -> unit 
public function SetSelectedComponents(
    components : ICollection
)

Parameters

Implements

ISelectionService.SetSelectedComponents(ICollection)

Remarks

If components is nulla null reference (Nothing in Visual Basic), an empty collection of components is used.

The existing elements in the selection container are replaced with the new elements are added.

If the selection container's contents are modified, this method calls OnSelectionChanging and OnSelectionChanged.

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

SetSelectedComponents Overload

Microsoft.VisualStudio.Modeling.Shell Namespace