Table of Contents

TTMSFNCGanttTaskStates.AddState Method

Adds a task state using one base color for fill and stroke.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTaskStates

Syntax

function AddState(AName: string; AColor: TTMSFNCGraphicsColor; APriorityLevel: Integer = 0; AProgressColor: TTMSFNCGraphicsColor = gcNull; AFont: TTMSFNCGraphicsFont = nil): TTMSFNCGanttTaskState; overload;

Parameters

Name Description
AName Name assigned to the state.
AColor Base color for tasks in this state.
APriorityLevel Priority used when parent state is derived from subtasks.
AProgressColor Optional progress color.
AFont Optional font assigned to the state.

Returns

The newly created task state.