Dela via


PresentationHelpers.Shapes Method (IElement, IDiagram)

All the shapes that display the model element on any open diagram, or on a specified open diagram.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Shapes ( _
    element As IElement, _
    diagram As IDiagram _
) As IEnumerable(Of IShape)
public static IEnumerable<IShape> Shapes(
    this IElement element,
    IDiagram diagram
)
[ExtensionAttribute]
public:
static IEnumerable<IShape^>^ Shapes(
    IElement^ element, 
    IDiagram^ diagram
)
static member Shapes : 
        element:IElement * 
        diagram:IDiagram -> IEnumerable<IShape> 
public static function Shapes(
    element : IElement, 
    diagram : IDiagram
) : IEnumerable<IShape>

Parameters

Return Value

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

Usage Note

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