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
- 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>
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace