PresentationHelpers.GetSelectedShapes<T> Method

Get all the selected shapes that display UML model elements of the specified type.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetSelectedShapes(Of T As IElement) ( _
    diagram As IDiagram _
) As IEnumerable(Of IShape(Of T))
public static IEnumerable<IShape<T>> GetSelectedShapes<T>(
    this IDiagram diagram
)
where T : IElement
[ExtensionAttribute]
public:
generic<typename T>
where T : IElement
static IEnumerable<IShape<T>^>^ GetSelectedShapes(
    IDiagram^ diagram
)
static member GetSelectedShapes : 
        diagram:IDiagram -> IEnumerable<IShape<'T>>  when 'T : IElement
JScript does not support generic types or methods.

Type Parameters

  • T
    IElement or one of its subtypes.

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<IShape<T>>
All the selected shapes in the diagram that display a UML model element of the specified type or one of its subtypes.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDiagram. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

For more information, see:

.NET Framework Security

See Also

Reference

PresentationHelpers Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace