ModelingWindowPane.SetSelectedComponents Method (ICollection)

Inserts components into the selection container and notifies the shell of the selection change.

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

Syntax

'宣言
Public Overridable Sub SetSelectedComponents ( _
    components As ICollection _
)
'使用
Dim instance As ModelingWindowPane
Dim components As ICollection

instance.SetSelectedComponents(components)
public virtual void SetSelectedComponents(
    ICollection components
)
public:
virtual void SetSelectedComponents(
    ICollection^ components
)
public function SetSelectedComponents(
    components : ICollection
)

Parameters

Implements

ISelectionService.SetSelectedComponents(ICollection)

Remarks

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

The existing elements in the selection container are cleared before the new elements are added.

This method implements the IVsTrackSelectionEx interface to notify the shell that the selection has changed.

Permissions

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

SetSelectedComponents Overload

Microsoft.VisualStudio.Modeling.Shell Namespace