Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

MermaidStateDocument

Namespace ChartForgeX.Mermaid
Assembly ChartForgeX.Mermaid
Modifiers sealed

Describes a parsed Mermaid state diagram.

Inheritance

Usage

Explore 9 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

Accepted by parameters 8

Constructors

public MermaidStateDocument() #

Properties

public String? Direction { get; set; } #

Gets or sets the optional diagram direction statement.

public List<MermaidStateNode> States { get; } #

Gets states in source order.

public List<MermaidStateTransition> Transitions { get; } #

Gets transitions in source order.

public List<MermaidStateStatement> Statements { get; } #

Gets retained notes, class definitions, and other non-rendered state statements.

Extension Methods

public static Byte[] ToPng(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #
Returns: Byte[]

Renders a Mermaid state diagram to PNG.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optionalposition: 1
public static String ToSvg(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #
Returns: String

Renders a Mermaid state diagram to SVG.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optionalposition: 1
public static TopologyChart ToTopologyChart(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #
Returns: TopologyChart

Converts a Mermaid state diagram to a topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optionalposition: 1
public static VisualArtifact ToVisualArtifact(MermaidStateDocument document, MermaidTopologyRenderOptions? options = null) #
Returns: VisualArtifact

Wraps a Mermaid state diagram in a visual artifact envelope.

Parameters

document ChartForgeX.Mermaid.MermaidStateDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optionalposition: 1