PresentationHelpers::Shapes<T> Method (T, IDiagram^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: generic<typename T> where T : IElement [ExtensionAttribute] static IEnumerable<IShape<T>^>^ Shapes( T element, IDiagram^ diagram = null )
Parameters
- element
- Type: T
- diagram
-
Type:
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation::IDiagram^
Omit 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>
For more information, see:
Show: