Skip to main content

TcxCustomSchedulerStorage.PopulateHolidayDates(TcxSchedulerDateList,TDate,TDate,Boolean,Boolean) Method

Populates AList with holiday dates by the specified period.

Declaration

procedure PopulateHolidayDates(AList: TcxSchedulerDateList; AStart: TDate; AFinish: TDate; AOnlyVisible: Boolean = True; AClearList: Boolean = True); virtual;

Parameters

Name Type
AList TcxSchedulerDateList
AStart TDate
AFinish TDate
AOnlyVisible Boolean
AClearList Boolean

Remarks

AStart and AFinish specify the time range.

AOnlyVisible specifies which holidays are to be written to AList. Set AOnlyVisible to True, to populate AList with holidays that are available to the scheduler (the TcxSchedulerHolidaysLocation.Visible and TcxSchedulerHolidaysLocationHoliday.Visible properties are True). Otherwise, all the holidays (stored in the TcxSchedulerHolidays component) will be placed in AList.

AClearList specifies whether AList is to be cleared prior to writing new items.

All the holiday reference duplicates are automatically deleted if linked storages are connected to the same TcxSchedulerHolidays component.

See Also