Back to Devexpress

DateNavigator.HighlightHolidays Property

windowsforms-devexpress-dot-xtrascheduler-dot-datenavigator-ccc67793.md

latest3.2 KB
Original Source

DateNavigator.HighlightHolidays Property

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

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool HighlightHolidays { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property HighlightHolidays As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to highlight holiday dates; otherwise, false.

|

Remarks

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

csharp
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

vb
dateNavigator1.CellStyleProvider = New CustomCellStyleProvider(schedulerControl1.WorkDays)
dateNavigator1.HighlightHolidays = True
dateNavigator1.DateTime = New DateTime(2015, 02, 26)

See Also

How to: Add Custom Holidays

How to: Load Holidays from the Outlook.hol file

DateNavigator Class

DateNavigator Members

DevExpress.XtraScheduler Namespace