Skip to main content
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

FMX.TMSFNCGanttClasses.hppPascalC++
function AddHoliday(AStartDate: TDateTime; AEndDate: TDateTime = 0; UseTime: Boolean = False): TTMSFNCGanttHoliday;
TTMSFNCGanttHoliday* __fastcall AddHoliday(System::TDateTime AStartDate, System::TDateTime AEndDate = 0.000000E+00, bool UseTime = false);

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.