# MermaidStateTransition

Describes one state transition. 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:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidStateDocument.cs#L79)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one state transition.

## Inheritance

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

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

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidStateTransition(string sourceId, string targetId, string? label, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes a state transition.

Parameters

**sourceId string required**

**targetId string required**

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

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

Gets the source state id.

 `public string TargetId { get; }` [#](#property-targetid) 

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

Gets the target state id.

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

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

Gets the optional transition label.

## 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:9E8F881FFC658BA5D9C4BEA54F8F4D6BB3AF9F72F620FF60762E1D48B3CF0B4C -->
