WorkdaysOptions.Holidays Property
Specifies holidays for exclusion from the date-time axis scale.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
IEnumerable<DateTime> | An array of DateTime objects. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Holidays |
---|---|
AutomaticDateTimeScaleOptions |
|
ContinuousDateTimeScaleOptions |
|
DateTimeScaleOptionsBase |
|
IntervalDateTimeScaleOptions |
|
ManualDateTimeScaleOptions |
|
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Holidays property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.