ExtensionContextExtensions.AtLeastOneSelected Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AtLeastOneSelected<T>(IVsSelectionContext) |
Helper returning true if the selection contains at least an element of type T |
AtLeastOneSelected<T1,T2>(IVsSelectionContext) |
Helper returning true if the selection contains at least an element of type T1 or T2. |
AtLeastOneSelected<T>(IVsSelectionContext)
Helper returning true if the selection contains at least an element of type T
public:
generic <typename T>
where T : class[System::Runtime::CompilerServices::Extension]
static bool AtLeastOneSelected(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static bool AtLeastOneSelected<T> (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context) where T : class;
static member AtLeastOneSelected : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> bool (requires 'T : null)
<Extension()>
Public Function AtLeastOneSelected(Of T As Class) (context As IVsSelectionContext) As Boolean
Type Parameters
- T
Type of the element
Parameters
- context
- IVsSelectionContext
Returns
Applies to
AtLeastOneSelected<T1,T2>(IVsSelectionContext)
Helper returning true if the selection contains at least an element of type T1 or T2.
public:
generic <typename T1, typename T2>
where T1 : class where T2 : class[System::Runtime::CompilerServices::Extension]
static bool AtLeastOneSelected(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static bool AtLeastOneSelected<T1,T2> (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context) where T1 : class where T2 : class;
static member AtLeastOneSelected : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> bool (requires 'T1 : null and 'T2 : null)
<Extension()>
Public Function AtLeastOneSelected(Of T1 As Class, T2 As Class) (context As IVsSelectionContext) As Boolean
Type Parameters
- T1
Type of the element to look for
- T2
Type of the element to look for, alternatively
Parameters
- context
- IVsSelectionContext