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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.