property Calendar.NonworkingDaysColor as Color
Retrieves or sets a value that indicates the color to fill the non-working days.

TypeDescription
Color A Color expression that indicates the color to fill the non-working days.
Use the NonworkingDaysColor property to specify the color being used by the NonworkingDaysPattern property. Use the NonworkingDays property to specify the nonworking days in a week. Use the NonworkingDaysPattern property to specify the pattern to fill the non-working days. For instance, if  the NonworkingDaysPattern is exPatternEmpty the non-working days are not highlighted. The FirstDay property specifies the first day of the week. The NonworkingDaysForeColor property specifies the foreground color for non-working days. 

The following VB sample marks Sunday and Monday days on red:

With Calendar1
    .NonworkingDays = 2 ^ (EXCALENDARLibCtl.Sunday - 1) Or 2 ^ (EXCALENDARLibCtl.Monday - 1)
    .NonworkingDaysColor = RGB(255, 0, 0)
End With

The following C++ sample sample marks Sunday and Monday days on red:

m_calendar.SetNonworkingDays( 1 << ( EXCALENDARLib::Sunday - 1 ) | 1 << ( EXCALENDARLib::Monday - 1 ) );
m_calendar.SetNonworkingDaysColor( RGB(255,0,0,) );

The following VB.NET sample marks Sunday and Monday days on red:

With AxCalendar1
    .NonworkingDays = 2 ^ (EXCALENDARLib.WeekDayEnum.Sunday - 1) Or 2 ^ (EXCALENDARLib.WeekDayEnum.Monday - 1)
    .NonworkingDaysColor = Color.Red
End With

The following C# sample marks Sunday and Monday days on red:

axCalendar1.NonworkingDays = 1 << (Convert.ToInt32(EXCALENDARLib.WeekDayEnum.Sunday) - 1) | 1 << (Convert.ToInt32(EXCALENDARLib.WeekDayEnum.Monday) - 1);
axCalendar1.NonworkingDaysColor = Color.Red;

The following VFP sample sample marks Sunday and Monday days on red:

with thisform.Calendar1
	.NonworkingDays = 2 ^ 0 + 2 ^ 1
	.NonworkingDaysColor = RGB(255,0,0)
endwith