Reference > TDBCalendar Control > TDBCalendar Control Properties > WeekDays Property (TDBCalendar) |
The WeekDays() property is an object array property; starting from Sunday, elements 1 through 7 hold each weekday's information.
TDBCalendar.WeekDays(Index)
Read-only at run time. Not available at design time.
Each object holds the character attribute, caption, and so on:
1 |
Sunday |
2 |
Monday |
3 |
Tuesday |
4 |
Wednesday |
5 |
Thursday |
6 |
Friday |
7 |
Saturday |
The WeekDays() property is used together with the WeekRests property. When specific weeks for a particular weekday is set to a weekend, the color attributes, and so on will be picked up from the Attribute property in the WeekDay object.
How the weekday title area should be drawn can be set using the WeekStyleSet, so refer to that property for details.