Skip to main content

AppointmentViewInfo.Interval Property

Gets or sets the time interval of the time cells covered by the current appointment.

Namespace: DevExpress.Web.ASPxScheduler.Drawing

Assembly: DevExpress.Web.ASPxScheduler.v24.2.dll

Declaration

public TimeInterval Interval { get; set; }

Property Value

Type Description
TimeInterval

A TimeInterval object representing the time range of the time cells.

Remarks

If an appointment lasts several days, visually it can be divided into several parts - one for each day. In this case, each appointment part is represented by a particular AppointmentViewInfo object. The Interval property specifies the time interval of the time cells covered by the appointment on a particular day. The AppointmentViewInfo.AppointmentInterval property specifies the time interval of the whole appointment.

The following picture shows an appointment which starts on one day and finishes on another, but does not last a whole day. This appointment is divided into two parts displayed in the Day View. The DayView.ShowWorkTimeOnly property is set to true, so the time interval from 6 PM to 9AM is hidden.

AppointmentViewInfo.Interval

The two visual parts of the appointment are two different AppointmentViewInfo objects. The ASPxScheduler.AppointmentViewInfoCustomizing event fires two times for the same appointment - once for each visual part. The table below illustrates the difference between Interval and AppointmentViewInfo.AppointmentInterval properties.

Object Interval Property AppointmentInterval Property
AppointmentViewInfo Object#1 (May 23 3:00:00 PM)-(May 23 6:00:00 PM) (May 23 3:00:00 PM)-(May 24 1:30:00 PM)
AppointmentViewInfo Object#2 (May 24 9:00:00 AM)-(May 24 1:30:00 PM) (May 23 3:00:00 PM)-(May 24 1:30:00 PM)

Implements

DevExpress.XtraScheduler.Drawing.IAppointmentView.Interval
See Also