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

MermaidBlockDocument

Namespace ChartForgeX.Mermaid
Assembly ChartForgeX.Mermaid
Modifiers sealed

Describes a parsed Mermaid block 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 MermaidBlockDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets block statements retained in source order.

public List<MermaidBlockItem> Items { get; } #

Gets parsed block items in layout order.

public List<MermaidBlockEdge> Edges { get; } #

Gets parsed block edges.

public List<MermaidRawStatement> StyleStatements { get; } #

Gets style and class statements retained for future rendering support.

public Int32? Columns { get; set; } #

Gets or sets the optional column count.

public String? Title { get; set; } #

Gets or sets the optional title statement.

Extension Methods

public static BlockLayoutBlock ToBlockLayoutBlock(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #
Returns: BlockLayoutBlock

Converts a Mermaid block document into a reusable block-layout visual block.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1
public static Byte[] ToPng(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null) #
Returns: Byte[]

Renders a Mermaid block document to static PNG.

Parameters

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

Renders a Mermaid block document to static SVG.

Parameters

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

Wraps a Mermaid block document in a visual artifact envelope backed by a block-layout block.

Parameters

document ChartForgeX.Mermaid.MermaidBlockDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = null optionalposition: 1