PresentationHelpers.Shapes<T> Method (T, IDiagram)

All the shapes that display the model element on any open diagram, or on a specified open diagram. Returns a list of shapes 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 Shapes(Of T As IElement) ( _
    element As T, _
    diagram As IDiagram _
) As IEnumerable(Of IShape(Of T))
public static IEnumerable<IShape<T>> Shapes<T>(
    this T element,
    IDiagram diagram
)
where T : IElement
[ExtensionAttribute]
public:
generic<typename T>
where T : IElement 
static IEnumerable<IShape<T>^>^ Shapes(
    T element, 
    IDiagram^ diagram
)
static member Shapes : 
        element:'T * 
        diagram:IDiagram -> IEnumerable<IShape<'T>>  when 'T : IElement
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the returned shapes will be IShape<T>

Parameters

  • element
    Type: T

Return Value

Type: System.Collections.Generic.IEnumerable<IShape<T>>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. 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

Shapes Overload

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace