ComponentOne True DBInput Pro 8.0
DayStyleSet Property (TDBCalendar)

The DayStyleSet property is used to determine the drawing style set to use for the month/day area. The days can either appear as 3D or 2D based on how the drawing style set is setup. The built-in DayStyle styleset will be set as the default. To setup a style set, use the Add method in the StyleSets collection object. Also, the Item() property in the same object can be used to make the other detail settings.

Syntax

control.DayStyleSet= variant

Read/Write at run time and design time.

Values

Integer, String, Object (StyleSet)

Remarks

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

Calendar.DayStyleSet = 1 ' Item 1 in StyleSets collection

Calendar.DayStyleSet = "DayCell"

Set Calendar.DayStyleSet = Calendar.StyleSets("DayCell")

When nothing is set in the DayStyleSet property (set to Null), a default styleset registered in the 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 the day portion will be drawn using the BorderColor of the DayStyleSet setting.

 

 


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

Product Support Forum  |  Documentation Feedback