# MermaidWardleyDocument

Describes a parsed Mermaid Wardley map.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidWardleyDocument.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L12)

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid Wardley map.

## Inheritance

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

## 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.ParseWardley](/api/chartforgex-mermaid-mermaidparser/#method-parsewardley-string)

### Accepted by parameters 8

- Extension method [MermaidWardleyDocument.ToPng](/api/chartforgex-mermaid-mermaidwardleydocument/#extension-topng-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Extension method [MermaidWardleyDocument.ToSvg](/api/chartforgex-mermaid-mermaidwardleydocument/#extension-tosvg-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Extension method [MermaidWardleyDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidwardleydocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Extension method [MermaidWardleyDocument.ToWardleyMapBlock](/api/chartforgex-mermaid-mermaidwardleydocument/#extension-towardleymapblock-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Method [MermaidWardleyRendering.ToPng](/api/chartforgex-mermaid-mermaidwardleyrendering/#method-topng-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Method [MermaidWardleyRendering.ToSvg](/api/chartforgex-mermaid-mermaidwardleyrendering/#method-tosvg-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Method [MermaidWardleyRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidwardleyrendering/#method-tovisualartifact-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`
- Method [MermaidWardleyRendering.ToWardleyMapBlock](/api/chartforgex-mermaid-mermaidwardleyrendering/#method-towardleymapblock-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

[MermaidWardleyDocument.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L12)

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

[MermaidWardleyDocument.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L12)

Gets Wardley statements retained in source order.

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

[MermaidWardleyDocument.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L15)

Gets or sets the optional Mermaid title.

 `public int? CanvasWidth { get; set; }` [#](#property-canvaswidth) 

[MermaidWardleyDocument.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L18)

Gets or sets the optional Mermaid canvas width.

 `public int? CanvasHeight { get; set; }` [#](#property-canvasheight) 

[MermaidWardleyDocument.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L21)

Gets or sets the optional Mermaid canvas height.

 `public List<string> Stages { get; }` [#](#property-stages) 

[MermaidWardleyDocument.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L24)

Gets evolution stage labels.

 `public List<double> StageBoundaries { get; }` [#](#property-stageboundaries) 

[MermaidWardleyDocument.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L27)

Gets explicit normalized stage boundaries retained in source order; partial lists use equal distribution.

 `public List<MermaidWardleyNode> Nodes { get; }` [#](#property-nodes) 

[MermaidWardleyDocument.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L30)

Gets parsed map nodes.

 `public List<MermaidWardleyLink> Links { get; }` [#](#property-links) 

[MermaidWardleyDocument.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L33)

Gets parsed dependency links.

 `public List<MermaidWardleyEvolution> Evolutions { get; }` [#](#property-evolutions) 

[MermaidWardleyDocument.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L36)

Gets parsed evolution trends.

 `public List<MermaidWardleyNote> Notes { get; }` [#](#property-notes) 

[MermaidWardleyDocument.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L39)

Gets parsed notes.

 `public MermaidWardleyAnnotationBox? AnnotationsBox { get; set; }` [#](#property-annotationsbox) 

[MermaidWardleyDocument.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L42)

Gets or sets the optional normalized origin of the annotation legend.

 `public List<MermaidWardleyAnnotation> Annotations { get; }` [#](#property-annotations) 

[MermaidWardleyDocument.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L45)

Gets parsed numbered annotations.

 `public List<MermaidWardleyMarker> Markers { get; }` [#](#property-markers) 

[MermaidWardleyDocument.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L48)

Gets parsed accelerators and deaccelerators.

 `public List<MermaidWardleyPipeline> Pipelines { get; }` [#](#property-pipelines) 

[MermaidWardleyDocument.cs:51](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyDocument.cs#L51)

Gets parsed pipelines.

## 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(MermaidWardleyDocument document, MermaidWardleyRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) 

[MermaidWardleyRendering.cs:99](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyRendering.cs#L99)

Renders a Mermaid Wardley document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidWardleyDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidWardleyDocument document, MermaidWardleyRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) 

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

Renders a Mermaid Wardley document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidWardleyDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidWardleyDocument document, MermaidWardleyRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) 

[MermaidWardleyRendering.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyRendering.cs#L68)

Wraps a Mermaid Wardley document in a visual artifact envelope.

Parameters

**document ChartForgeX.Mermaid.MermaidWardleyDocument required**

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

Returns

 `VisualArtifact` 

 `public static WardleyMapBlock ToWardleyMapBlock(MermaidWardleyDocument document, MermaidWardleyRenderOptions? options = null)` [#](#extension-towardleymapblock-chartforgex-mermaid-mermaidwardleydocument-chartforgex-mermaid-mermaidwardleyrenderoptions) 

[MermaidWardleyRendering.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidWardleyRendering.cs#L18)

Converts a Mermaid Wardley document into a reusable Wardley map block.

Parameters

**document ChartForgeX.Mermaid.MermaidWardleyDocument required**

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

Returns

 `WardleyMapBlock` 

<!-- PowerForge markdown artifact sha256:D1B3BADC60E18F80E1FF8C5AD87F50C1906796643AFE4CA818E23AB4CAB24605 -->
