# MermaidGanttDocument

Describes a parsed Mermaid Gantt diagram.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid Gantt diagram.

## Inheritance

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

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

### Accepted by parameters 8

- Extension method [MermaidGanttDocument.ToChart](/api/chartforgex-mermaid-mermaidganttdocument/#extension-tochart-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Extension method [MermaidGanttDocument.ToPng](/api/chartforgex-mermaid-mermaidganttdocument/#extension-topng-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Extension method [MermaidGanttDocument.ToSvg](/api/chartforgex-mermaid-mermaidganttdocument/#extension-tosvg-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Extension method [MermaidGanttDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidganttdocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Method [MermaidGanttRendering.ToChart](/api/chartforgex-mermaid-mermaidganttrendering/#method-tochart-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Method [MermaidGanttRendering.ToPng](/api/chartforgex-mermaid-mermaidganttrendering/#method-topng-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Method [MermaidGanttRendering.ToSvg](/api/chartforgex-mermaid-mermaidganttrendering/#method-tosvg-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`
- Method [MermaidGanttRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidganttrendering/#method-tovisualartifact-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

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

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

Gets retained non-empty Gantt statements.

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

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

Gets or sets the optional Mermaid title.

 `public string DateFormat { get; set; }` [#](#property-dateformat) 

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

Gets or sets the Mermaid dateFormat directive.

 `public DateTime? DateAnchor { get; internal set; }` [#](#property-dateanchor) 

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

Gets the explicit calendar date used when resolving input fields without a year.

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

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

Gets or sets the optional Mermaid axisFormat directive.

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

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

Gets or sets the optional Mermaid tickInterval directive.

 `public DayOfWeek Weekday { get; set; }` [#](#property-weekday) 

[MermaidGanttDocument.cs:29](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L29)

Gets or sets the weekday used to align weekly ticks. Mermaid defaults to Sunday.

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

[MermaidGanttDocument.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L32)

Gets or sets merged tokens from Mermaid excludes directives.

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

[MermaidGanttDocument.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L35)

Gets or sets merged dates from includes directives that override excluded days.

 `public string Weekend { get; set; }` [#](#property-weekend) 

[MermaidGanttDocument.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L38)

Gets or sets the first weekend day, friday or saturday.

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

[MermaidGanttDocument.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L41)

Gets or sets the optional Mermaid todayMarker directive.

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

[MermaidGanttDocument.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttDocument.cs#L44)

Gets Gantt sections in source order.

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

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

Gets Gantt 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 Chart ToChart(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null)` [#](#extension-tochart-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) 

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

Converts a Mermaid Gantt document into a renderer-independent ChartForgeX chart.

Parameters

**document ChartForgeX.Mermaid.MermaidGanttDocument required**

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

Returns

 `Chart` 

 `public static byte[] ToPng(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null)` [#](#extension-topng-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) 

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

Renders a Mermaid Gantt document to static PNG through ChartForgeX chart rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidGanttDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null)` [#](#extension-tosvg-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) 

[MermaidGanttRendering.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttRendering.cs#L93)

Renders a Mermaid Gantt document to static SVG through ChartForgeX chart rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidGanttDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null)` [#](#extension-tovisualartifact-chartforgex-mermaid-mermaidganttdocument-chartforgex-mermaid-mermaidganttrenderoptions) 

[MermaidGanttRendering.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGanttRendering.cs#L63)

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

Parameters

**document ChartForgeX.Mermaid.MermaidGanttDocument required**

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

Returns

 `VisualArtifact` 

<!-- PowerForge markdown artifact sha256:4291CCB12D206A8BE6E7ABC227040CF027557D64AB0EAA472F59196818DA8329 -->
