Back to Devexpress

WorkdaysOptions.Holidays Property

wpf-devexpress-dot-xpf-dot-charts-dot-workdaysoptions-7d55fdca.md

latest2.1 KB
Original Source

WorkdaysOptions.Holidays Property

Specifies holidays for exclusion from the date-time axis scale.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public IEnumerable<DateTime> Holidays { get; set; }
vb
Public Property Holidays As IEnumerable(Of Date)

Property Value

TypeDescription
IEnumerable<DateTime>

An array of DateTime objects.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Holidays
DateTimeScaleOptionsBase

.WorkdaysOptions .Holidays

|

Remarks

Use the Holidays property, to manually populate the collection of holidays.

Alternatively, you can import holidays in the DevExpress Scheduler ( .xml ) or Microsoft Office Outlook® ( .hol ) formats from a file, using the WorkdaysOptions.LoadHolidays method.

Note

If a date is defined as both a holiday (the Holidays property) and strict workday (the WorkdaysOptions.ExactWorkdays property), it is considered working day, and consequently, it is not excluded from the axis scale.

See Also

WorkdaysOptions Class

WorkdaysOptions Members

DevExpress.Xpf.Charts Namespace