ExtensionContextExtensions.IsSingleSelection(IVsSelectionContext) 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 window. This could be a document or tool window.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsSingleSelection(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static bool IsSingleSelection (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context);
static member IsSingleSelection : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> bool
<Extension()>
Public Function IsSingleSelection (context As IVsSelectionContext) As Boolean
Parameters
- context
- IVsSelectionContext
Returns
true: if there is exactly one selected item in the active window. false: otherwise.