ExtensionContextExtensions.IsSingleDocumentSelection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- context
- IVsSelectionContext
Returns
true: If there is exactly one selected item in the active document false: otherwise.