Skip to main content
Table of Contents

TTMSFNCGanttTask.AddSubEventMarker Method

Adds a zero-duration event marker as a subtask.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTask

Syntax

FMX.TMSFNCGanttClasses.hppPascalC++
function AddSubEventMarker(AName: string; ADescription: string; AStartDate: TDateTime = 0; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AState: TTMSFNCGanttTaskState = nil): TTMSFNCGanttTask;
TTMSFNCGanttTask* __fastcall AddSubEventMarker(System::UnicodeString AName, System::UnicodeString ADescription, System::TDateTime AStartDate = 0.000000E+00, TTMSFNCGanttTaskWorkTimePolicy AWorkTimePolicy = (TTMSFNCGanttTaskWorkTimePolicy)(0x0), TTMSFNCGanttTaskState* AState = (TTMSFNCGanttTaskState*)(0x0));

Parameters

Name Description
AName Name of the event marker.
ADescription Description of the event marker.
AStartDate Planned marker date/time. A value of 0 lets the task calculate its start.
AWorkTimePolicy Calendar policy used to position the marker.
AState Optional state assigned to the marker.

Returns

The newly created event marker.