windowsforms-devexpress-dot-xtrascheduler-dot-datenavigator-ccc67793.md
Gets or sets a value indicating if holiday dates should be highlighted with Red color.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool HighlightHolidays { get; set; }
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property HighlightHolidays As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to highlight holiday dates; otherwise, false.
|
Use this property to specify if holiday dates should be highlighted with Red color in the DateNavigator control.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HighlightHolidays 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.
winforms-scheduler-country-specific-work-week-holidays/CS/Form1.cs#L29
dateNavigator1.CellStyleProvider = new CustomCellStyleProvider(schedulerControl1.WorkDays);
dateNavigator1.HighlightHolidays = true;
dateNavigator1.DateTime = new DateTime(2015, 02, 26);
winforms-scheduler-country-specific-work-week-holidays/VB/Form1.vb#L28
dateNavigator1.CellStyleProvider = New CustomCellStyleProvider(schedulerControl1.WorkDays)
dateNavigator1.HighlightHolidays = True
dateNavigator1.DateTime = New DateTime(2015, 02, 26)
See Also