Share via


ExtensionContextExtensions.GetCurrentDocumentSelection<T> Method

Definition

Get the subset of the current document selection which is of type T

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCurrentDocumentSelection(Microsoft::VisualStudio::Modeling::Diagrams::ExtensionEnablement::IVsSelectionContext ^ context);
public static System.Collections.Generic.IEnumerable<T> GetCurrentDocumentSelection<T> (this Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext context) where T : class;
static member GetCurrentDocumentSelection : Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement.IVsSelectionContext -> seq<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function GetCurrentDocumentSelection(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