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)


<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
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>


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).


For more information, see:

.NET Framework Security

See Also


PresentationHelpers Class

Shapes Overload

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace