Table of Contents

TTMSFNCGanttHolidays.AddHoliday Method

Adds a holiday for the specified date or date/time range.

API unit family: TMSFNCGanttClasses Declaring type: TTMSFNCGanttHolidays

Syntax

function AddHoliday(AStartDate: TDateTime; AEndDate: TDateTime = 0; UseTime: Boolean = False): TTMSFNCGanttHoliday;

Parameters

Name Description
AStartDate Start date/time of the holiday range.
AEndDate End date/time of the holiday range.
UseTime When True, the time portion of the dates is included.

Returns

The newly created holiday.