# MermaidGanttTask

Describes one Mermaid Gantt task or milestone.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid Gantt task or milestone.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidGanttTask

## Usage

 Explore 1 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

- Property [MermaidGanttDocument.Tasks](/api/chartforgex-mermaid-mermaidganttdocument/#property-tasks)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidGanttTask(string title, string? id, string? section, DateTime start, DateTime end, double progress, bool milestone, IReadOnlyList<string> tags, IReadOnlyList<string> dependencies, string rawMetadata, MermaidSourceSpan span)` [#](#member-c2b4f46a452113a77818a7f2) 

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

Initializes a Gantt task.

Parameters

**title string required**

**id string? required**

**section string? required**

**start System.DateTime required**

**end System.DateTime required**

**progress double required**

**milestone bool required**

**tags System.Collections.Generic.IReadOnlyList<string> required**

**dependencies System.Collections.Generic.IReadOnlyList<string> required**

**rawMetadata string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## 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 string Title { get; }` [#](#property-title) 

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

Gets the display title.

 `public string? Id { get; }` [#](#property-id) 

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

Gets the optional task id.

 `public string? Section { get; }` [#](#property-section) 

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

Gets the optional section name.

 `public DateTime Start { get; }` [#](#property-start) 

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

Gets the authored/resolved task start date/time, including a milestone's range start.

 `public DateTime End { get; }` [#](#property-end) 

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

Gets the scheduling end used by dependencies, including a milestone's range end and excluded dates.

 `public DateTime RenderEnd { get; internal set; }` [#](#property-renderend) 

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

Gets the visible bar endpoint before trailing excluded days; milestone rendering uses the scheduling range midpoint.

 `public double Progress { get; }` [#](#property-progress) 

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

Gets the rendered progress value from zero to one.

 `public bool IsMilestone { get; }` [#](#property-ismilestone) 

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

Gets whether the task is a milestone.

 `public bool IsVerticalMarker { get; }` [#](#property-isverticalmarker) 

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

Gets whether this source task paints a vertical guide instead of reserving a task row.

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

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

Gets Mermaid tags such as active, done, crit, milestone, and vert.

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

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

Gets referenced dependency ids from after clauses.

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

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

Gets referenced task ids from until end clauses.

 `public int DependencyIndex { get; internal set; }` [#](#property-dependencyindex) 

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

Gets the resolved zero-based dependency index, or -1 when none is rendered.

 `public string RawMetadata { get; }` [#](#property-rawmetadata) 

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

Gets raw Mermaid metadata after the task colon.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

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