Condividi tramite


ExtensionContextExtensions.IsSingleSelection(IVsSelectionContext) Method

Definition

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

Returns

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

Applies to