IUseCaseDiagram.Display<T> Method
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)
Syntax
'Declaration
Function Display(Of T As IElement) ( _
element As T, _
parent As IShape, _
xoffset As Double, _
yoffset As Double _
) As IShape(Of T)
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
The argument type of the IShape<T> to be returned. Can usually be implicit.
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 locate a use case within a System 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.
Remarks
You cannot explicitly display relationships. A relationship appears on a diagram automatically whenever both of its ends appear.
For more information, see How to: Display a Model on Diagrams.
.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.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace