IGanttSeries.NextTask
IGanttSeries
property NextTask: IValueList;
Type Library
TeeChartx
Description
The NextTask property is a List class that holds the Gantt bar index each Gantt bar is connected to.
When a Gantt bar is added to GanttSeries, it's NextTask value is assigned to -1 by default. That means the Gantt bar is NOT connected to any other Gantt Bar.
You need to set a valid bar index to NextTask.
Example [Visual Basic]:
Let's add two Gantt bars:
With TChart1
.AddSeries scGantt
.Legend.Visible = False
.Aspect.View3D = False
.Series(0).asGantt.AddGantt DateValue("20/11/00"), DateValue("30/11/00"), 2, "Gary"
.Series(0).asGantt.AddGantt DateValue("20/12/00"), DateValue("30/12/00"), 4, "Jenny"
.Series(0).asGantt.NextTask.Value(0) = 1
End With