Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Display an element on the diagram. The element may be an instance of IClass, IInterface, IEnumeration, IPackage, or IComment. Creates an IShape whose Element is element.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
IShape<T> Display<T>(
T element,
IShape parent = null,
double xoffset = 0,
double yoffset = 0
)
where T : IElement
generic<typename T>
where T : IElement
IShape<T>^ Display(
T element,
IShape^ parent = null,
double xoffset = 0,
double yoffset = 0
)
abstract Display<'T when 'T : IElement> :
element:'T *
parent:IShape = null *
xoffset:float = 0 *
yoffset:float = 0 -> IShape<'T>
Function Display(Of T As IElement) (
element As T,
parent As IShape,
xoffset As Double,
yoffset As Double
) As IShape(Of T)
Parameters
element
Type: TThe element to be displayed.
parent
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IShapeThe shape within which the new shape is to be located, or null to place it on the diagram. Use this to place the shape inside a package shape.
xoffset
Type: System.DoubleThe ___location of the new shape relative to the diagram.
yoffset
Type: System.DoubleThe ___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.
Remarks
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.
See Also
IClassDiagram Interface
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace
Return to top