ExtensionContextExtensions::IsSingleDocumentSelection Method (IVsSelectionContext^)
Visual Studio 2015
Returns whether or not there is only one selected item on the active document.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: [ExtensionAttribute] static bool IsSingleDocumentSelection( IVsSelectionContext^ context )
Parameters
Return Value
Type: System::Booleantrue: If there is exactly one selected item in the active document false: otherwise.
Show: