ExtensionContextExtensions::IsSingleSelection Method (IVsSelectionContext^)

 

Returns whether or not there is only one selected item on the active window. This could be a document or tool window.

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 IsSingleSelection(
	IVsSelectionContext^ context
)

Parameters

Return Value

Type: System::Boolean

true: if there is exactly one selected item in the active window. false: otherwise.

Return to top
Show: