Share via


CommandSet.IsAnyDocumentSelectionCompartment Method

Verifies whether a compartment 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 IsAnyDocumentSelectionCompartment As Boolean
'Usage
Dim returnValue As Boolean 

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

Return Value

Type: System.Boolean
true if at least one compartment is selected; otherwise, false.

Remarks

You can assign a compartment to a shape. Each compartment can contain items, such as methods. A shape can have zero or more compartments.

.NET Framework Security

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace