Pattern object
The Pattern object can be used to apply a pattern and a frame with different colors on an UI element. For instance, the Calendar.HighlightEvent.Pattern property indicates the pattern to be applied on the calendar panel for dates with events. The Event.BodyPattern property indicates the pattern to be shown on the event's body. The Pattern object supports the following properties:

NameDescription
ColorSpecifies the pattern color.
FrameColorSpecifies the pattern's frame color.
TypeRetrieves or sets a value that indicates the pattern to fill the element.