Skip to content
ChartForgeX
Class

MermaidClassDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid class 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 MermaidClassDocument() #

Properties

public string? Direction { get; set; } #

Gets or sets the authored whole-diagram direction.

public List<MermaidClassNode> Classes { get; } #

Gets classes in source order.

public List<MermaidClassNamespace> Namespaces { get; } #

Gets explicit and intermediate namespaces in first-declaration order.

public List<MermaidClassRelationship> Relationships { get; } #

Gets class relationships in source order.

public List<MermaidClassStyleStatement> StyleStatements { get; } #

Gets source-ordered styling and retained interaction statements.

public List<MermaidStyleDefinition> ClassDefinitions { get; } #

Gets named style definitions in source order.

public List<MermaidDiagramNote> Notes { get; } #

Gets visible floating or class-attached notes in source order.

Extension Methods

public static byte[] ToPng(MermaidClassDocument document, MermaidTopologyRenderOptions? options = null) #

Renders a Mermaid class diagram to PNG.

Parameters

document ChartForgeX.Mermaid.MermaidClassDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

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

Renders a Mermaid class diagram to SVG.

Parameters

document ChartForgeX.Mermaid.MermaidClassDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

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

Converts a Mermaid class diagram to a topology chart.

Parameters

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

Wraps a Mermaid class diagram in a visual artifact envelope.

Parameters

document ChartForgeX.Mermaid.MermaidClassDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional