TTMSFNCGanttTask.AddSubTask Method
Adds a subtask below this task.
API unit family: TMSFNCGanttClasses
Declaring type: TTMSFNCGanttTask
Syntax
function AddSubTask(AName: string; ADescription: string; AStartDate: TDateTime = 0; ADurationValue: Double = 0; ADurationType: TTMSFNCGanttDurationType = gdtSeconds; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AProgress: Integer = 0; AState: TTMSFNCGanttTaskState = nil): TTMSFNCGanttTask;
TTMSFNCGanttTask* __fastcall AddSubTask(System::UnicodeString AName, System::UnicodeString ADescription, System::TDateTime AStartDate = 0.000000E+00, double ADurationValue = 0.000000E+00, TTMSFNCGanttDurationType ADurationType = (TTMSFNCGanttDurationType)(0x0), TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0), int AProgress = 0x0, TTMSFNCGanttTaskState* AState = (TTMSFNCGanttTaskState*)(0x0));
Parameters
| Name | Description |
|---|---|
AName |
Name of the new subtask. |
ADescription |
Description of the new subtask. |
AStartDate |
Planned start date/time. A value of 0 lets the task calculate its start. |
ADurationValue |
Duration amount expressed in ADurationType. |
ADurationType |
Unit used by ADurationValue. |
AWorkTimePolicy |
Calendar policy used to schedule the task. |
AProgress |
Initial progress percentage. |
AState |
Optional state assigned to the new task. |
Returns
The newly created subtask.