SchedulerItemBase.Duration Property
Gets or sets the appointment’s duration.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v21.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
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 SchedulerItemBase.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