Skip to main content
A newer version of this page is available.
All docs
V18.2

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