C4Boundary Class
A boundary of a C4 diagram, or a deployment node: a frame with a name around elements and other boundaries.
public sealed class C4Boundary : C4Item- Inheritance
C4ItemC4Boundary
Constructors
| Name | Description |
|---|---|
| C4Boundary(string, DiagramText, C4BoundaryKind) | Initializes a new instance of the C4Boundary class. |
C4Boundary(string, DiagramText, C4BoundaryKind)
C4Boundary.csInitializes a new instance of the C4Boundary class.
public C4Boundary(string id, DiagramText label, C4BoundaryKind kind = C4BoundaryKind.Boundary)Parameters
idstring- The identifier (Mermaid alias).
labelDiagramText- The name.
kindC4BoundaryKind- The kind.
Properties
| Name | Description |
|---|---|
| Boundaries | Gets the boundaries nested in this one, placed after the elements. |
| Elements | Gets the elements of the boundary, placed in rows in order. |
| Kind | Gets or sets the kind of the boundary. A deployment node has a solid frame; the other boundaries are dashed. |
| Type | Gets or sets the type shown between brackets below the name, such as Ubuntu 16.04 LTS for a deployment node, or null for the default: none for a C4BoundaryKind.Boundary, the kind for the others. |
Boundaries
C4Boundary.csGets the boundaries nested in this one, placed after the elements.
public IList<C4Boundary> Boundaries { get; }Property value
Elements
C4Boundary.csGets the elements of the boundary, placed in rows in order.
Property value
Kind
C4Boundary.csGets or sets the kind of the boundary. A deployment node has a solid frame; the other boundaries are dashed.
public C4BoundaryKind Kind { get; set; }Property value
Type
C4Boundary.csGets or sets the type shown between brackets below the name, such as Ubuntu 16.04 LTS for a deployment node, or null for the default: none for a C4BoundaryKind.Boundary, the kind for the others.
public string? Type { get; set; }