Skip to content
ChartForgeX
Class

MermaidGanttTask

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes one Mermaid Gantt task or milestone.

Inheritance

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

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

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

Properties

public string Title { get; } #

Gets the display title.

public string? Id { get; } #

Gets the optional task id.

public string? Section { get; } #

Gets the optional section name.

public DateTime Start { get; } #

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

public DateTime End { get; } #

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

public DateTime RenderEnd { get; internal set; } #

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

public double Progress { get; } #

Gets the rendered progress value from zero to one.

public bool IsMilestone { get; } #

Gets whether the task is a milestone.

public bool IsVerticalMarker { get; } #

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

public List<string> Tags { get; } #

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

public List<string> DependencyIds { get; } #

Gets referenced dependency ids from after clauses.

public List<string> UntilTaskIds { get; } #

Gets referenced task ids from until end clauses.

public int DependencyIndex { get; internal set; } #

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

public string RawMetadata { get; } #

Gets raw Mermaid metadata after the task colon.