ExtensionContextExtensions::AtLeastOneSelected<T1, T2> Method (IVsSelectionContext^)

 

Helper returning true if the selection contains at least an element of type T1 or T2.

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 T1, typename T2>
where T1 : ref class
where T2 : ref class
[ExtensionAttribute]
static bool AtLeastOneSelected(
	IVsSelectionContext^ context
)

Parameters

Return Value

Type: System::Boolean

Type Parameters

T1

Type of the element to look for

T2

Type of the element to look for, alternatively

Return to top
Show: