ExtensionContextExtensions::GetCurrentDocumentSelection<T> Method (IVsSelectionContext^)
Visual Studio 2015
Get the subset of the current document selection which is of type T
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: generic<typename T> where T : ref class [ExtensionAttribute] static IEnumerable<T>^ GetCurrentDocumentSelection( IVsSelectionContext^ context )
Parameters
Return Value
Type: System.Collections.Generic::IEnumerable<T>^An enumeration which is a subset of the selected elements of type T
Type Parameters
- T
A type we look instances of in the selection
Show: