# MermaidJourneyDocument

Describes a parsed Mermaid user journey diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid user journey diagram.

## Inheritance

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

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

### Accepted by parameters 8

- Extension method [MermaidJourneyDocument.ToJourneyDiagramBlock](/api/chartforgex-mermaid-mermaidjourneydocument/#extension-tojourneydiagramblock-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Extension method [MermaidJourneyDocument.ToPng](/api/chartforgex-mermaid-mermaidjourneydocument/#extension-topng-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Extension method [MermaidJourneyDocument.ToSvg](/api/chartforgex-mermaid-mermaidjourneydocument/#extension-tosvg-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Extension method [MermaidJourneyDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidjourneydocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Method [MermaidJourneyRendering.ToJourneyDiagramBlock](/api/chartforgex-mermaid-mermaidjourneyrendering/#method-tojourneydiagramblock-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Method [MermaidJourneyRendering.ToPng](/api/chartforgex-mermaid-mermaidjourneyrendering/#method-topng-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Method [MermaidJourneyRendering.ToSvg](/api/chartforgex-mermaid-mermaidjourneyrendering/#method-tosvg-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`
- Method [MermaidJourneyRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidjourneyrendering/#method-tovisualartifact-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

[MermaidJourneyDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyDocument.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) 

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

Gets raw journey statements retained with source spans.

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

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

Gets or sets the optional Mermaid journey title.

 `public List<MermaidJourneySection> Sections { get; }` [#](#property-sections) 

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

Gets journey sections in source order.

 `public List<MermaidJourneyTask> Tasks { get; }` [#](#property-tasks) 

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

Gets journey tasks 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 JourneyDiagramBlock ToJourneyDiagramBlock(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#extension-tojourneydiagramblock-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

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

Creates the native diagram, retaining authored ordering and section identity.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `JourneyDiagramBlock` 

 `public static byte[] ToPng(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L49)

Renders native PNG from the same composed scene.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

[MermaidJourneyRendering.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidJourneyRendering.cs#L47)

Renders native static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidJourneyDocument document, MermaidJourneyRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaidjourneydocument-chartforgex-mermaid-mermaidjourneyrenderoptions) 

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

Wraps the native diagram in the shared bounded Mermaid artifact policy.

Parameters

**document ChartForgeX.Mermaid.MermaidJourneyDocument required**

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

Returns

 `VisualArtifact` 

<!-- PowerForge markdown artifact sha256:77AAB09AEDA34A568FE7F73ED8AB9695045C4306C5A57116480A59502D784CC3 -->
