CommandSet.CurrentSelection Property

Gets the selected shapes in the active window.

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

Syntax

'宣言
Protected ReadOnly Property CurrentSelection As ICollection
'使用
Dim value As ICollection

value = Me.CurrentSelection
protected ICollection CurrentSelection { get; }
protected:
property ICollection^ CurrentSelection {
    ICollection^ get ();
}
protected function get CurrentSelection () : ICollection

Property Value

Type: System.Collections.ICollection

The currently selected shapes.

Remarks

A user can select shapes in the document window or the tool window.

Permissions

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace