GanttSection Class

A section of a Gantt chart: tasks drawn on rows of the same color, with the title on the left.

public sealed class GanttSection

Constructors

NameDescription
GanttSection(DiagramText)Initializes a new instance of the GanttSection class.

GanttSection(DiagramText)

GanttSection.cs

Initializes a new instance of the GanttSection class.

public GanttSection(DiagramText title)

Parameters

title DiagramText
The title.

Properties

NameDescription
TasksGets the tasks, in order.
TitleGets or sets the title.

Gets the tasks, in order.

public IList<GanttTask> Tasks { get; }

Property value

IList<GanttTask>

Gets or sets the title.

public DiagramText Title { get; set; }

Property value

DiagramText

Methods

NameDescription
AddTask(DiagramText)Adds a task.

AddTask(DiagramText)

GanttSection.cs

Adds a task.

public GanttTask AddTask(DiagramText name)

Parameters

name DiagramText
The name.

Returns

GanttTask The task.