All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SchedulerItemBase.Duration Property

Gets or sets the appointment's duration.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public TimeSpan Duration { get; }
Public ReadOnly Property Duration As TimeSpan

Property Value

Type Description
TimeSpan

A TimeSpan value that is the appointment length.

Remarks

The SchedulerItemBase.Start property and the Duration property specify the value of the SchedulerItemBase.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