ExtensionContextExtensions.GetCurrentSelection<T> Method

Definition

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

Returns

An enumeration which is a subset of the selected elements of type T

Applies to