Skip to main content

WorkDaysCollection.AddHoliday(DateTime, String) Method

Creates and adds a Holiday class instance to the WorkDaysCollection if the collection does not contain the specified item.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public int AddHoliday(
    DateTime date,
    string displayName
)

Parameters

Name Type Description
date DateTime

A DateTime value, representing the date of the holiday.

displayName String

A String, representing a name of the holiday to display.

Returns

Type Description
Int32

An integer, representing the position into which the new element was inserted.

See Also