# MermaidStateStatement

Describes a retained non-transition state statement.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes a retained non-transition state statement.

## Inheritance

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

## 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.Statements](/api/chartforgex-mermaid-mermaidstatedocument/#property-statements)

 Filter members   

    Show inherited   

 

## Constructors

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

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

Initializes a state statement.

Parameters

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

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

Gets the raw statement 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:591EB2D816AB4D15C2B2270EF85C4F9C747E0D02363A4C85075C445E80D7C681 -->
