# MermaidArchitectureDocument

Describes a parsed Mermaid architecture diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidArchitectureDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L11)

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid architecture diagram.

## Inheritance

- [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)
- MermaidArchitectureDocument

## 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

- Method [MermaidParser.ParseArchitecture](/api/chartforgex-mermaid-mermaidparser/#method-parsearchitecture-string)

### Accepted by parameters 8

- Extension method [MermaidArchitectureDocument.ToPng](/api/chartforgex-mermaid-mermaidarchitecturedocument/#extension-topng-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidArchitectureDocument.ToSvg](/api/chartforgex-mermaid-mermaidarchitecturedocument/#extension-tosvg-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidArchitectureDocument.ToTopologyChart](/api/chartforgex-mermaid-mermaidarchitecturedocument/#extension-totopologychart-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Extension method [MermaidArchitectureDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidarchitecturedocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidArchitectureRendering.ToPng](/api/chartforgex-mermaid-mermaidarchitecturerendering/#method-topng-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidArchitectureRendering.ToSvg](/api/chartforgex-mermaid-mermaidarchitecturerendering/#method-tosvg-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidArchitectureRendering.ToTopologyChart](/api/chartforgex-mermaid-mermaidarchitecturerendering/#method-totopologychart-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`
- Method [MermaidArchitectureRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidarchitecturerendering/#method-tovisualartifact-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidArchitectureDocument()` [#](#constructor-ctor) 

[MermaidArchitectureDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L11)

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public List<MermaidRawStatement> Statements { get; }` [#](#property-statements) 

[MermaidArchitectureDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L11)

Gets raw architecture statements retained with source spans.

 `public List<MermaidArchitectureGroup> Groups { get; }` [#](#property-groups) 

[MermaidArchitectureDocument.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L14)

Gets parsed architecture groups in source order.

 `public List<MermaidArchitectureService> Services { get; }` [#](#property-services) 

[MermaidArchitectureDocument.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L17)

Gets parsed architecture services in source order.

 `public List<MermaidArchitectureJunction> Junctions { get; }` [#](#property-junctions) 

[MermaidArchitectureDocument.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L20)

Gets parsed architecture junctions in source order.

 `public List<MermaidArchitectureAlignment> Alignments { get; }` [#](#property-alignments) 

[MermaidArchitectureDocument.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L23)

Gets every authored row/column alignment occurrence in source order.

 `public List<MermaidArchitectureEdge> Edges { get; }` [#](#property-edges) 

[MermaidArchitectureDocument.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureDocument.cs#L26)

Gets parsed architecture edges in source order.

## Inherited Properties

 `public MermaidDiagramKind Kind { get; set; }` [#](#property-kind) 

[MermaidDocument.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L91)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public bool IsDiagnosticOnly { get; }` [#](#property-isdiagnosticonly) 

[MermaidDocument.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L94)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string SourceText { get; set; }` [#](#property-sourcetext) 

[MermaidDocument.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L97)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceSpan HeaderSpan { get; set; }` [#](#property-headerspan) 

[MermaidDocument.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L100)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string Header { get; set; }` [#](#property-header) 

[MermaidDocument.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L103)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string? FrontMatter { get; set; }` [#](#property-frontmatter) 

[MermaidDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L106)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public VisualAccessibility Accessibility { get; }` [#](#property-accessibility) 

[MermaidDocument.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L109)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string? Theme { get; set; }` [#](#property-theme) 

[MermaidDocument.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L112)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceConfiguration Configuration { get; internal set; }` [#](#property-configuration) 

[MermaidDocument.cs:115](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L115)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidDirective> Directives { get; }` [#](#property-directives) 

[MermaidDocument.cs:118](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L118)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidRawStatement> RawStatements { get; }` [#](#property-rawstatements) 

[MermaidDocument.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L121)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

## Extension Methods

 `public static byte[] ToPng(MermaidArchitectureDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidArchitectureRendering.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureRendering.cs#L119)

Renders a Mermaid architecture document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidArchitectureDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static string ToSvg(MermaidArchitectureDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidArchitectureRendering.cs:116](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureRendering.cs#L116)

Renders a Mermaid architecture document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidArchitectureDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `string` 

 `public static TopologyChart ToTopologyChart(MermaidArchitectureDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-totopologychart-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidArchitectureRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureRendering.cs#L19)

Converts a Mermaid architecture document into a renderer-independent ChartForgeX topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidArchitectureDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `TopologyChart` 

 `public static VisualArtifact ToVisualArtifact(MermaidArchitectureDocument document, MermaidTopologyRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaidarchitecturedocument-chartforgex-mermaid-mermaidtopologyrenderoptions) 

[MermaidArchitectureRendering.cs:95](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidArchitectureRendering.cs#L95)

Wraps a Mermaid architecture document in a visual artifact envelope backed by a ChartForgeX topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidArchitectureDocument required**

**options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional**

Returns

 `VisualArtifact` 

<!-- PowerForge markdown artifact sha256:16B3E4BDD039EF2A5AEA28757F3774D936379510CF131A0C4BD4D52860860B20 -->
