Table of Contents

TTMSFNCGanttTaskStates.AddStateWithStrokeColor Method

Adds a task state with separate fill and stroke colors.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTaskStates

Syntax

function AddStateWithStrokeColor(AName: string; AFillColor: TTMSFNCGraphicsColor; AStrokeColor: TTMSFNCGraphicsColor; APriorityLevel: Integer = 0; AProgressFillColor: TTMSFNCGraphicsColor = gcNull; AProgressStrokeColor: TTMSFNCGraphicsColor = gcNull; AFont: TTMSFNCGraphicsFont = nil): TTMSFNCGanttTaskState; overload;

Parameters

Name Description
AName Name assigned to the state.
AFillColor Fill color for tasks in this state.
AStrokeColor Stroke color for tasks in this state.
APriorityLevel Priority used when parent state is derived from subtasks.
AProgressFillColor Optional progress fill color.
AProgressStrokeColor Optional progress stroke color.
AFont Optional font assigned to the state.

Returns

The newly created task state.