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

Declaration

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

Parameters

Name Type Description
storage ISchedulerStorageBase

A ISchedulerStorageBase object.

workDays WorkDaysCollection

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

Returns

Type Description
AppointmentBaseCollection

An AppointmentBaseCollection collection of generated appointments.

Remarks

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