ExtensionContextExtensions::IsSingleDocumentSelection Method (IVsSelectionContext^)

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
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::Boolean

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

Return to top
Show: