GanttTask Class
A task of a Gantt chart. It starts at GanttTask.Start, or after the tasks of GanttTask.After, or else after the previous task; it ends at GanttTask.End, or at the start of the first task of GanttTask.Until, or after GanttTask.Duration, or else at its start.
public sealed class GanttTaskConstructors
| Name | Description |
|---|---|
| GanttTask(DiagramText) | Initializes a new instance of the GanttTask class. |
GanttTask(DiagramText)
GanttTask.csInitializes a new instance of the GanttTask class.
public GanttTask(DiagramText name)Parameters
nameDiagramText- The name.
Properties
| Name | Description |
|---|---|
| After | Gets the identifiers of the tasks this task starts after, when GanttTask.Start is not set: it starts at the latest of their ends. |
| Duration | Gets or sets the duration, when neither GanttTask.End nor GanttTask.Until are set. |
| End | Gets or sets the end date, or null to end at GanttTask.Until or after GanttTask.Duration. |
| Id | Gets or sets the identifier that the other tasks use in GanttTask.After and GanttTask.Until, or null for none. |
| IsActive | Gets or sets a value that indicates whether the task is in progress (Mermaid active). |
| IsCritical | Gets or sets a value that indicates whether the task is critical, drawn in red (Mermaid crit). |
| IsDone | Gets or sets a value that indicates whether the task is done, drawn in gray (Mermaid done). |
| IsMilestone | Gets or sets a value that indicates whether the task is a milestone, drawn as a diamond in the middle of its time (Mermaid milestone). |
| IsVertical | Gets or sets a value that indicates whether the task is a vertical marker across the chart at its start, with its name below (Mermaid vert). |
| Link | Gets or sets the address the task links to in the SVG, or null for none. |
| Name | Gets or sets the name, shown in the bar or next to it. |
| Start | Gets or sets the start date, or null to start after other tasks. |
| Until | Gets the identifiers of the tasks this task lasts until, when GanttTask.End is not set: it ends at the earliest of their starts. |
After
GanttTask.csGets the identifiers of the tasks this task starts after, when GanttTask.Start is not set: it starts at the latest of their ends.
Property value
Duration
GanttTask.csGets or sets the duration, when neither GanttTask.End nor GanttTask.Until are set.
public GanttDuration? Duration { get; set; }Property value
End
GanttTask.csGets or sets the end date, or null to end at GanttTask.Until or after GanttTask.Duration.
public DateTime? End { get; set; }Property value
Gets or sets the identifier that the other tasks use in GanttTask.After and GanttTask.Until, or null for none.
public string? Id { get; set; }Property value
IsActive
GanttTask.csIsCritical
GanttTask.csIsDone
GanttTask.csIsMilestone
GanttTask.csIsVertical
GanttTask.csLink
GanttTask.csName
GanttTask.csGets or sets the name, shown in the bar or next to it.
public DiagramText Name { get; set; }Property value
Start
GanttTask.csUntil
GanttTask.csGets the identifiers of the tasks this task lasts until, when GanttTask.End is not set: it ends at the earliest of their starts.
Property value
Methods
| Name | Description |
|---|---|
| ToString() | Returns the name of the task. |