Condividi tramite


ExtensionContextExtensions.IsSingleDocumentSelection Method

Definition

Returns whether or not there is only one selected item on the active document.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsSingleDocumentSelection(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static bool IsSingleDocumentSelection (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context);
static member IsSingleDocumentSelection : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> bool
<Extension()>
Public Function IsSingleDocumentSelection (context As IVsSelectionContext) As Boolean

Parameters

Returns

true: If there is exactly one selected item in the active document false: otherwise.

Applies to