ExtensionContextExtensions.GetCurrentSelection<T> 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.
Get the subset of the current selection which is of type T
public:
generic <typename T>
where T : class[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<T> ^ GetCurrentSelection(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static System.Collections.Generic.IEnumerable<T> GetCurrentSelection<T> (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context) where T : class;
static member GetCurrentSelection : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> seq<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function GetCurrentSelection(Of T As Class) (context As IVsSelectionContext) As IEnumerable(Of T)
Type Parameters
- T
A type we look instances of in the selection
Parameters
- context
- IVsSelectionContext
Returns
IEnumerable<T>
An enumeration which is a subset of the selected elements of type T