ExtensionContextExtensions::AtLeastOneSelected<T> Method (IVsSelectionContext^)

 

Helper returning true if the selection contains at least an element of type T

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
generic<typename T>
where T : ref class
[ExtensionAttribute]
static bool AtLeastOneSelected(
	IVsSelectionContext^ context
)

Parameters

command

Dynamic command to enable

Return Value

Type: System::Boolean

Type Parameters

T

Type of the element

Return to top
Show: