IComponentDiagram::Display<T> Method (T, Double, Double)
Visual Studio 2015
Display a UML component on the class diagram. Creates an IShape whose Element is element. The parts and ports of the component are automatically displayed.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
generic<typename T> where T : IElement IShape<T>^ Display( T element, double xoffset = 0, double yoffset = 0 )
Parameters
- element
-
Type:
T
The element to be displayed.
- 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 type of the element to be displayed. Can usually be implicit.
You cannot explicitly display relationships or component parts or ports. A relationship appears on a diagram automatically whenever both of its ends appear. When you display a component, its component parts and ports are also displayed.
For more information, see Display a UML model on diagrams.
Show: