# MermaidStateNode

Describes one state diagram node. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one state diagram node.

## Inheritance

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

## 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 [MermaidStateDocument.States](/api/chartforgex-mermaid-mermaidstatedocument/#property-states)

 Filter members   

    Show inherited   

 

## Constructors

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

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

Initializes a state 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) 

[MermaidStateDocument.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidStateDocument.cs#L47)

Gets the state id.

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

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

Gets or sets an optional description label.

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

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

Gets or sets the containing composite state id.

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

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

Gets or sets the region within the containing composite state.

 `public bool IsComposite { get; set; }` [#](#property-iscomposite) 

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

Gets or sets whether this state declares a composite boundary, including an empty one.

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

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

Gets or sets the direction authored within this composite state.

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

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

Gets named classes in assignment order; later classes override earlier class paints.

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

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

Gets direct declarations, which override named/default paints without changing state semantics.

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

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

Gets or sets the special state marker such as choice, fork, join, start, or end.

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