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