All docs
V18.2
21.1 (EAP/Beta)
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
18.2
18.1
17.2
A newer version of this page is available.

AppointmentItem.Duration Property

Gets or sets the appointment’s duration.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v18.2.dll

Declaration

public TimeSpan Duration { get; }

Property Value

Type Description
TimeSpan

A TimeSpan value that is the appointment length.

Remarks

The AppointmentItem.Start property and the Duration property specify the value of the AppointmentItem.End property for the appointment. The End value is always calculated as End = Start + Duration.

The Ticks property value of the Duration should be greater than or equal to 0.

NOTE

If the AppointmentItem.AllDay property is set to true, then the appointment’s start date is the Date fraction of the Duration value, and the start time is 0:00.

See Also