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
public static IEnumerable<IShape> Shapes(
this IElement element,
IDiagram diagram = null
)
public:
[ExtensionAttribute]
static IEnumerable<IShape^>^ Shapes(
IElement^ element,
IDiagram^ diagram = null
)
static member Shapes :
element:IElement *
diagram:IDiagram = null -> IEnumerable<IShape>
<ExtensionAttribute>
Public Shared Function Shapes (
element As IElement,
diagram As IDiagram
) As IEnumerable(Of IShape)
Parameters
- element
Type: Microsoft.VisualStudio.Uml.Classes.IElement
diagram
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IDiagramOmit to find shapes on all diagrams.
Return Value
Type: System.Collections.Generic.IEnumerable<IShape>
Remarks
For more information, see:
See Also
Shapes Overload
PresentationHelpers Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace
Return to top