Skip to content
ChartForgeX
Class

MermaidTreeViewDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid tree view diagram.

Inheritance

Usage

Explore 11 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 10

Constructors

public MermaidTreeViewDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets retained non-empty tree view statements.

public List<MermaidTreeViewNode> Roots { get; } #

Gets top-level tree view nodes.

public List<MermaidTreeViewNode> Nodes { get; } #

Gets all tree view nodes in source order.

Extension Methods

public static byte[] ToPng(MermaidTreeViewDocument document, MermaidTreeViewRenderOptions? options = null) #

Renders native PNG through the same mark and positioned-text scene.

Parameters

document ChartForgeX.Mermaid.MermaidTreeViewDocument required
options ChartForgeX.Mermaid.MermaidTreeViewRenderOptions? = null optional

Returns

byte[]
public static string ToSvg(MermaidTreeViewDocument document, MermaidTreeViewRenderOptions? options = null) #

Renders the shared static SVG row scene.

Parameters

document ChartForgeX.Mermaid.MermaidTreeViewDocument required
options ChartForgeX.Mermaid.MermaidTreeViewRenderOptions? = null optional

Returns

string
public static TopologyChart ToTopologyChart(MermaidTreeViewDocument document, MermaidTopologyRenderOptions? options = null) #

Converts a Mermaid tree view to a topology chart.

Parameters

document ChartForgeX.Mermaid.MermaidTreeViewDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional
public static TreeViewBlock ToTreeViewBlock(MermaidTreeViewDocument document, MermaidTreeViewRenderOptions? options = null) #

Creates measured rows in source order without turning filenames into network nodes.

Parameters

document ChartForgeX.Mermaid.MermaidTreeViewDocument required
options ChartForgeX.Mermaid.MermaidTreeViewRenderOptions? = null optional
public static VisualArtifact ToVisualArtifact(MermaidTreeViewDocument document, MermaidTreeViewRenderOptions? options = null) #

Wraps native rows in the existing bounded Mermaid export policy.

Parameters

document ChartForgeX.Mermaid.MermaidTreeViewDocument required
options ChartForgeX.Mermaid.MermaidTreeViewRenderOptions? = null optional