IClassDiagram.Display<T> Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Display the given UML element on this diagram or in given parent shape, at the specified location. Specify (0,0) to place the shape automatically.
Namespace: Microsoft.VisualStudio.Uml.Presentation
Assembly: Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)
Syntax
'Declaration
Function Display(Of T As IElement) ( _
element As T, _
parent As IShape, _
xoffset As Double, _
yoffset As Double _
) As IShape(Of T)
'Usage
Dim instance As IClassDiagram
Dim element As T
Dim parent As IShape
Dim xoffset As Double
Dim yoffset As Double
Dim returnValue As IShape(Of T)
returnValue = instance.Display(element, _
parent, xoffset, yoffset)
IShape<T> Display<T>(
T element,
IShape parent,
double xoffset,
double yoffset
)
where T : IElement
generic<typename T>
where T : IElement
IShape<T>^ Display(
T element,
IShape^ parent,
double xoffset,
double yoffset
)
abstract Display :
element:'T *
parent:IShape *
xoffset:float *
yoffset:float -> IShape<'T> when 'T : IElement
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- element
Type: T
UML element to display.
- parent
Type: Microsoft.VisualStudio.Uml.Presentation.IShape
Parent shape of the new shape. If null, the element is displayed directly on the diagram.
- xoffset
Type: System.Double
X position from left(inch)
- yoffset
Type: System.Double
Y position from top(inch)
Return Value
Type: Microsoft.VisualStudio.Uml.Presentation.IShape<T>
The new shape for given element, or null if failed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.