Back to Devexpress

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

vcl-cxschedulerstorage-dot-tcxcustomschedulerstorage-dot-populateholidaydates-x28-cxschedulerutils-dot-tcxschedulerdatelist-system-dot-tdate-system-dot-tdate-system-dot-boolean-system-dot-boolean-x29.md

latest2.5 KB
Original Source

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

Populates AList with holiday dates by the specified period.

Declaration

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

Parameters

NameType
AListTcxSchedulerDateList
AStartTDate
AFinishTDate
AOnlyVisibleBoolean
AClearListBoolean

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

TcxCustomSchedulerStorage.GetHolidayNamesByDate

TcxSchedulerHolidays.GetHolidayNamesByDate

TcxSchedulerHolidays.PopulateHolidayDates

TcxCustomSchedulerStorage Class

TcxCustomSchedulerStorage Members

cxSchedulerStorage Unit