Share via


CommandSet.IsSingleDocumentSelection Method

Verifies whether only one shape is selected in the active document window.

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

Syntax

'Declaration
Protected Function IsSingleDocumentSelection As Boolean
'Usage
Dim returnValue As Boolean 

returnValue = Me.IsSingleDocumentSelection()
protected bool IsSingleDocumentSelection()
protected:
bool IsSingleDocumentSelection()
protected function IsSingleDocumentSelection() : boolean

Return Value

Type: System.Boolean
true if only one shape is selected; otherwise, false.

.NET Framework Security

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace