IUseCaseDiagram::Display<T> Method (T, IShape^, Double, Double)

 

Display an element on the diagram. Creates an IShape whose Element is element.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

generic<typename T>
where T : IElement
IShape<T>^ Display(
	T element,
	IShape^ parent = null,
	double xoffset = 0,
	double yoffset = 0
)

Parameters

element
Type: T

The element to be displayed.

parent
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation::IShape^

The shape within which the new shape is to be located, or null to place it on the diagram. Use this to locate a use case within a System shape.

xoffset
Type: System::Double

The location of the new shape relative to the diagram.

yoffset
Type: System::Double

The location of the new shape relative to the diagram.

Return Value

Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation::IShape<T>^

An IShape<T> representing the new shape.

Type Parameters

T

The argument type of the IShape<T> to be returned. Can usually be implicit.

You cannot explicitly display relationships. A relationship appears on a diagram automatically whenever both of its ends appear.

For more information, see Display a UML model on diagrams.

Return to top
Show: