Gets a collection of DayOfWeekStyle objects that allow customizing the appearance of specific days of the week in the calendar.
Namespace: MindFusion.Scheduling.WinForms
Assembly: MindFusion.Scheduling
C#
![]() |
---|
public DayOfWeekStyleCollection DayOfWeekStyles { get; } |
Visual Basic
![]() |
---|
Public ReadOnly Property DayOfWeekStyles As DayOfWeekStyleCollection |
An instance of the DayOfWeekStyleCollection class.
Add DayOfWeekStyle objects to this collection to specify a distinct style for a day of the week. If several styles are defined for the same day, the one having the highest Priority is used.
The following example demonstrates how to make all weekend days to be colored differently. The example assumes that calendar references an existing Calendar object.
C#
![]() |
---|
calendar.CurrentView = CalendarView.SingleMonth; |
Visual Basic
![]() |
---|
calendar.CurrentView = CalendarView.SingleMonth |