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)

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.

Type Parameters

T

The type of the returned shapes will be IShape<T>

For more information, see:

Return to top
Show: