C4Element Class
An element of a C4 diagram: a person, a software system, a container or a component.
public sealed class C4Element : C4Item- Inheritance
C4ItemC4Element
Constructors
| Name | Description |
|---|---|
| C4Element(string, C4ElementKind, DiagramText) | Initializes a new instance of the C4Element class. |
C4Element(string, C4ElementKind, DiagramText)
C4Element.csInitializes a new instance of the C4Element class.
public C4Element(string id, C4ElementKind kind, DiagramText label)Parameters
idstring- The identifier (Mermaid alias).
kindC4ElementKind- The kind.
labelDiagramText- The name.
Properties
| Name | Description |
|---|---|
| IsExternal | Gets or sets a value that indicates whether the element is outside of the system being described, drawn in gray (Mermaid _Ext). |
| Kind | Gets or sets the kind of the element, shown between brackets and with the colors of C4. |
| Shape | Gets or sets the shape of the element. A person is always drawn as a person. |
| Technology | Gets or sets the technology of a container or a component, shown with its kind, or null for none. |
IsExternal
C4Element.csKind
C4Element.csGets or sets the kind of the element, shown between brackets and with the colors of C4.
public C4ElementKind Kind { get; set; }Property value
Shape
C4Element.csGets or sets the shape of the element. A person is always drawn as a person.
public C4ElementShape Shape { get; set; }