# MermaidClassNode

Describes one Mermaid class. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidClassDocument.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L59)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid class.

## Inheritance

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

## 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 [MermaidClassDocument.Classes](/api/chartforgex-mermaid-mermaidclassdocument/#property-classes)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidClassNode(string id, MermaidSourceSpan span)` [#](#constructor-ctor-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidClassDocument.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L59)

Initializes a class node.

Parameters

**id 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 Id { get; }` [#](#property-id) 

[MermaidClassDocument.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L50)

Gets the class id.

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

[MermaidClassDocument.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L53)

Gets or sets an optional display label.

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

[MermaidClassDocument.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L56)

Gets or sets the enclosing namespace path.

 `public List<string> Annotations { get; }` [#](#property-annotations) 

[MermaidClassDocument.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L59)

Gets class annotations such as interface or abstract.

 `public List<MermaidClassMember> Members { get; }` [#](#property-members) 

[MermaidClassDocument.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L62)

Gets parsed class members.

 `public List<string> Classes { get; }` [#](#property-classes) 

[MermaidClassDocument.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L65)

Gets style classes assigned through inline or cssClass declarations, in assignment order.

 `public Dictionary<string, string> Styles { get; }` [#](#property-styles) 

[MermaidClassDocument.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L68)

Gets resolved style declarations, including properties diagnosed without a native mapping.

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

[MermaidClassDocument.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L71)

Gets or sets an authored link; native URI safety policy decides whether an exporter can expose it.

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

[MermaidClassDocument.cs:74](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidClassDocument.cs#L74)

Gets or sets the authored link tooltip as inert text.

## 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:AB89392FC2EE2C99C68147F4576FDBDE22E3EBAEEF381E46C0C3A9F2608CD99E -->
