property Schedule.NonworkingPatterns as NonworkingPatterns
Retrieves the NonworkingPatterns collection of the scheduler.

TypeDescription
NonworkingPatterns A NonworkingPatterns object that defines the pattern to be used by non-working time-intervals.
The NonworkingPatterns collection is accessible through the NonworkingPatterns property of the control. The NonworkingPatterns collection defines the patterns/colors to be used by non-working time intervals. In other words, each NonworkingTime object can associate a NonworkingPattern object that specifies the colors and the pattern to show the non-working zone. The ShowNonworkingTime property shows or hides the defined non-working intervals. The NonworkingTimeFromPoint property gets the non-working object from the cursor.

The Add method of the NonworkingPatterns collection defines a pattern/color. The ID property defines the identifier of the pattern/color. The IDNonworkingPattern property indicates the identifier of the NonworkingPattern object to be displayed on the non-working interval. 

The NonworkingPatterns collection holds a list of NonworkingPattern objects. The NonworkingDays property of the calendar defines the days to be non-working in the calendar. The NonworkingDaysPattern and the NonworkingDaysColor which defines the pattern and the color to show the non-working days. The FirstWeekDay property indicates the first day of the week. 

The Add method of the NonworkingTimes objects adds a new non-working time interval.