ComponentOne True DBInput Pro 8.0
WeekStyleSet Property (TDBCalendar)

The WeekStyleSet property is used to determine the drawing style set to use for the weekday titles. The weekday title area can either appear as 3D or 2D based on how the drawing style set is setup. The built-in "WeekStyle" styleset will be set by default. To set up a style set, use the Add method in the StyleSetsCollection object. Also, the Item() property in the same object can be used to make the other detail settings.

Syntax

TDBCalendar.WeekStyleSet= variant

Read/Write at run time and design time.

Values

Integer, String, Object (StyleSet)

Remarks

The WeekStyleSet property is defined as a variant type, so the property can be used in the following three ways.

Calendar.WeekStyleSet = 1 ' Item 1 in StyleSets collection

Calendar.WeekStyleSet = "WeekCell"

Set Calendar.WeekStyleSet = Calendar.StyleSets("WeekCell")

When nothing is set in the WeekStyleSet property (set to Null), a default styleset registered in the control (StyleSets collection) will be used instead. The font settings will be referenced from the Font object of the control.

When both the WeekStyleSet and the DayStyleSet properties are applied with a StyleSet object that has the BorderStyle property set to 1-Fixed Single, the border line color between the weekday and day portion will be drawn using the BorderColor of the DayStyleSet setting.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback