NonworkingPatterns object
The NonworkingPatterns collection holds a list of NonworkingPattern objects. 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 NonworkingPatterns collection is accessible through the NonworkingPatterns property of the control. 

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 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.

The NonworkingPatterns collection supports the following properties and methods:

 

NameDescription
AddAdds a NonworkingPattern object to the collection and returns a reference to the newly created object.
ClearRemoves all objects in a collection.
CountReturns the number of objects in a collection.
ItemReturns a specific NonworkingPattern of the NonworkingPatterns collection, giving its identifier.
RemoveRemoves a specific member from the NonworkingPatterns collection.