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

MermaidDocument

Namespace ChartForgeX.Mermaid
Assembly ChartForgeX.Mermaid

Describes a parsed Mermaid document.

Inheritance

  • Object
  • MermaidDocument

Usage

Explore 8 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 2

Accepted by parameters 6

Constructors

public MermaidDocument() #

Properties

public MermaidDiagramKind Kind { get; set; } #

Gets or sets the Mermaid diagram family.

public Boolean IsDiagnosticOnly { get; } #

Gets whether the recognized family retains source without a semantic parser or native renderer.

public String SourceText { get; set; } #

Gets or sets the full Mermaid source text.

public MermaidSourceSpan HeaderSpan { get; set; } #

Gets or sets the source span for the diagram header line.

public String Header { get; set; } #

Gets or sets the diagram header line.

public String? FrontMatter { get; set; } #

Gets or sets optional YAML frontmatter text.

public VisualAccessibility Accessibility { get; } #

Gets the text alternative declared by accTitle and accDescr statements.

public String? Theme { get; set; } #

Gets or sets the theme declared in source configuration.

public List<MermaidDirective> Directives { get; } #

Gets parsed Mermaid directives.

public List<MermaidRawStatement> RawStatements { get; } #

Gets unclassified body statements retained for recognized families that do not have a semantic parser yet.

Extension Methods

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

Renders an already parsed document to PNG.

Parameters

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

Renders an already parsed document to SVG.

Parameters

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

Converts an already parsed document into its typed artifact; unsupported families throw a located render error through Render.

Parameters

document ChartForgeX.Mermaid.MermaidDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidRenderOptions? = null optionalposition: 1