Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomSchedulerStorage.GetHolidayNamesByDate(TDate,string,Boolean) Method

Populates a parameter with names of holidays taking place at a certain date.

#Declaration

Delphi
function GetHolidayNamesByDate(ADate: TDate; var ANames: string; AOnlyVisible: Boolean = True): Boolean; virtual;

#Parameters

Name Type
ADate TDate
ANames string
AOnlyVisible Boolean

#Returns

Type
Boolean

#Remarks

A holiday name to be written to ANames combines two names – the holiday name itself (see the TcxSchedulerHolidaysLocationHoliday.Name property) and the concatenated holiday location name in parentheses (see the TcxSchedulerHolidaysLocation.Name property).

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

ANames contains the holidays’ names delimited by the #13#10 sequence.

ADate specifies the date when holidays take place.

AOnlyVisible specifies which holidays are taken into account. Set AOnlyVisible to True, if you are only interested in holidays which are available to the scheduler (the TcxSchedulerHolidaysLocation.Visible and TcxSchedulerHolidaysLocationHoliday.Visible properties are True). Otherwise, all holidays (stored in the TcxSchedulerHolidays component) will be written to ANames.

The GetHolidayNamesByDate method returns True if the match was successful.

See Also