Share via


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

'Declaration
Protected ReadOnly Property CurrentSelection As ICollection
'Usage
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.

.NET Framework Security

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace