IGanttSeries.AddGanttColor
IGanttSeries

function AddGanttColor(AStart, AEnd, AY: Double; Const AXLabel: WideString; Value: OLE_COLOR): Integer;

Type Library
TeeChartx

Description
The AddGanttColor function adds a new Gantt bar point to the Series.

It calls the AddGantt function and sets the specified AColor parameter by using the Series.

PointColor property.

This function returns the corresponding internal point index. You can then refer to this Gantt bar by using this index.

Please refer to GanttSeries.AddGantt function for an example of adding Gantt bars.