# MermaidC4Element

Describes a C4 person, system, container, component, or deployment node.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidC4Document.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L100)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes a C4 person, system, container, component, or deployment node.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidC4Element

## Usage

 Explore 1 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [MermaidC4Document.Elements](/api/chartforgex-mermaid-mermaidc4document/#property-elements)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidC4Element(string alias, string label, string kind, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidC4Document.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L100)

Initializes a C4 element.

Parameters

**alias string required**

**label string required**

**kind string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Alias { get; set; }` [#](#property-alias) 

[MermaidC4Document.cs:107](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L107)

Gets or sets the C4 element alias.

 `public string Label { get; set; }` [#](#property-label) 

[MermaidC4Document.cs:110](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L110)

Gets or sets the display label.

 `public string Kind { get; set; }` [#](#property-kind) 

[MermaidC4Document.cs:113](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L113)

Gets or sets the normalized C4 element kind.

 `public string? Description { get; set; }` [#](#property-description) 

[MermaidC4Document.cs:116](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L116)

Gets or sets the optional element description.

 `public string? Technology { get; set; }` [#](#property-technology) 

[MermaidC4Document.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L119)

Gets or sets the optional technology token for containers and components.

 `public string? Shape { get; set; }` [#](#property-shape) 

[MermaidC4Document.cs:122](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L122)

Gets or sets a supported source shape override, independently of the element kind.

 `public string? LegendText { get; set; }` [#](#property-legendtext) 

[MermaidC4Document.cs:124](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L124)

Gets or sets an explicit label for this element's native legend projection.

 `public string? LegendSprite { get; set; }` [#](#property-legendsprite) 

[MermaidC4Document.cs:126](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L126)

Gets or sets an explicit source legend sprite; external sprite loading is not performed.

 `public string? Sprite { get; set; }` [#](#property-sprite) 

[MermaidC4Document.cs:129](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L129)

Gets or sets optional Mermaid sprite metadata.

 `public string? Tags { get; set; }` [#](#property-tags) 

[MermaidC4Document.cs:132](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L132)

Gets or sets optional Mermaid tags.

 `public string? Link { get; set; }` [#](#property-link) 

[MermaidC4Document.cs:135](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L135)

Gets or sets optional Mermaid link metadata.

 `public string? BoundaryId { get; set; }` [#](#property-boundaryid) 

[MermaidC4Document.cs:138](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L138)

Gets or sets the containing boundary id.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

<!-- PowerForge markdown artifact sha256:9F44075AF90342A8372F3B3E94949671C0A1EF4ED4C7EAEC8D4CA3807B32985A -->
