ExtensionContextExtensions::GetCurrentSelection<T> Method (IVsSelectionContext^)

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
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>^ GetCurrentSelection(
	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

Return to top
Show: