ClassDiagramElement Class
An element of a class diagram that relations can link: a class or an interface.
public abstract class ClassDiagramElementProperties
| Name | Description |
|---|---|
| CssClasses | Gets the CSS classes of the element: the names of styles of ClassDiagram.ClassDefinitions. |
| Id | Gets the identifier of the element, unique in the diagram. It is the name shown when there is no ClassDiagramElement.Label. |
| Label | Gets or sets the name shown, or null to show the identifier. |
| Link | Gets or sets the address the element links to in the SVG, or null for none. |
| Style | Gets or sets the style of the element, which takes precedence over the style of its classes. |
| Tooltip | Gets or sets the text shown when hovering the element in the SVG, or null for none. |
CssClasses
ClassDiagramElement.csGets the CSS classes of the element: the names of styles of ClassDiagram.ClassDefinitions.
Property value
Gets the identifier of the element, unique in the diagram. It is the name shown when there is no ClassDiagramElement.Label.
public string Id { get; }Property value
Gets or sets the name shown, or null to show the identifier.
public DiagramText? Label { get; set; }Property value
Gets or sets the style of the element, which takes precedence over the style of its classes.
public DiagramStyle? Style { get; set; }Property value
Tooltip
ClassDiagramElement.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the identifier of the element. |