Mode Property (CalendarView Object)

The Mode property returns or sets the time unit of the calendar view. Read/write.

Syntax

objCalendarView.Mode

Data Type

Long

Remarks

The Mode property specifies the principal unit of display on which the calendar rendering is based. It controls the style of views generated by the RenderAppointments and RenderEvents methods. Together with the NumberOfUnits property it determines the overall time span of the calendar view, that is, the total amount of time rendered onto one HTML page.

Mode can have exactly one of the following values:


Mode setting
Decimal
value

Time unit
CdoMode
CalendarDaily
0 This calendar view is rendered in multiples of a day.
CdoMode
CalendarWeekly
1 This calendar view is rendered in multiples of a week.

The Mode property defaults to CdoModeCalendarDaily.