Skip to main content

SchedulerItemBase.Duration Property

Gets the appointment’s duration.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public TimeSpan Duration { get; }

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. If you want to use the specified appointment’s duration, set the exact value to the End property.

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

Note

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

See Also