A newer version of this page is available. Switch to the current version.

HolidaysHelper.GenerateHolidayAppointments(ISchedulerStorageBase, WorkDaysCollection) Method

Creates all-day appointments for the collection of holidays added to the specified SchedulerControl.WorkDays collection of the scheduler.

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v19.1.Core.dll


public static AppointmentBaseCollection GenerateHolidayAppointments(
    ISchedulerStorageBase storage,
    WorkDaysCollection workDays
Public Shared Function GenerateHolidayAppointments(
    storage As ISchedulerStorageBase,
    workDays As WorkDaysCollection
) As AppointmentBaseCollection


Name Type Description
storage ISchedulerStorageBase

A ISchedulerStorageBase object.

workDays WorkDaysCollection

A WorkDaysCollection object containing information about holidays for which appointments should be generated.


Type Description

An AppointmentBaseCollection collection of generated appointments.


The GenerateHolidayAppointments method creates a collection of all-day appointments of the AppointmentType.Normal type scheduled for holidays contained in the SchedulerControl.WorkDays collection. Each appointment has a subject that is equal to KnownDateDay.DisplayName of the corresponding holiday.

Add appointments to SchedulerStorage to persist and display them in the scheduler.

See Also