Table of Contents

TTMSFNCGanttTask.AddSubEventMarker Method

Adds a zero-duration event marker as a subtask.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttTask

Syntax

function AddSubEventMarker(AName: string; ADescription: string; AStartDate: TDateTime = 0; AWorkTimePolicy: TTMSFNCGanttTaskWorkTimePolicy = whWorkTimeAndDays; AState: TTMSFNCGanttTaskState = nil): TTMSFNCGanttTask;

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.