ExtensionContextExtensions.GetCurrentDocumentSelection<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 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
- context
- IVsSelectionContext
Returns
IEnumerable<T>
An enumeration which is a subset of the selected elements of type T