Share via


Mode Property (CalendarView Object)

Mode Property (CalendarView Object)

Important  The Collaboration Data Objects (CDO) 1.2.1 Rendering objects are not installed by or supported for use with Exchange Server 2003 or later.

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.

See Also

Concepts

CalendarView Object