# MermaidTimelineDocument

Describes a parsed Mermaid timeline document.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid timeline document.

## Inheritance

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

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

### Accepted by parameters 8

- Extension method [MermaidTimelineDocument.ToPng](/api/chartforgex-mermaid-mermaidtimelinedocument/#extension-topng-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Extension method [MermaidTimelineDocument.ToSvg](/api/chartforgex-mermaid-mermaidtimelinedocument/#extension-tosvg-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Extension method [MermaidTimelineDocument.ToTimelineDiagramBlock](/api/chartforgex-mermaid-mermaidtimelinedocument/#extension-totimelinediagramblock-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Extension method [MermaidTimelineDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidtimelinedocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Method [MermaidTimelineRendering.ToPng](/api/chartforgex-mermaid-mermaidtimelinerendering/#method-topng-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Method [MermaidTimelineRendering.ToSvg](/api/chartforgex-mermaid-mermaidtimelinerendering/#method-tosvg-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Method [MermaidTimelineRendering.ToTimelineDiagramBlock](/api/chartforgex-mermaid-mermaidtimelinerendering/#method-totimelinediagramblock-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`
- Method [MermaidTimelineRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidtimelinerendering/#method-tovisualartifact-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

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

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

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

Gets raw timeline statements retained with source spans.

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

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

Gets or sets the optional Mermaid timeline title.

 `public MermaidTimelineDirection Direction { get; set; }` [#](#property-direction) 

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

Gets or sets the declared timeline direction.

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

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

Gets timeline sections in source order.

 `public List<MermaidTimelinePeriod> Periods { get; }` [#](#property-periods) 

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

Gets timeline periods 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(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) 

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

Renders native PNG from the same composed scene.

Parameters

**document ChartForgeX.Mermaid.MermaidTimelineDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) 

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

Renders native static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidTimelineDocument required**

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

Returns

 `string` 

 `public static TimelineDiagramBlock ToTimelineDiagramBlock(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null)` [#](#extension-totimelinediagramblock-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) 

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

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

Parameters

**document ChartForgeX.Mermaid.MermaidTimelineDocument required**

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

Returns

 `TimelineDiagramBlock` 

 `public static VisualArtifact ToVisualArtifact(MermaidTimelineDocument document, MermaidTimelineRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaidtimelinedocument-chartforgex-mermaid-mermaidtimelinerenderoptions) 

[MermaidTimelineRendering.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidTimelineRendering.cs#L31)

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

Parameters

**document ChartForgeX.Mermaid.MermaidTimelineDocument required**

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

Returns

 `VisualArtifact` 

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