Back to Devexpress

SchedulerItemBase.Duration Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembase-5914ae51.md

latest2.0 KB
Original Source

SchedulerItemBase.Duration Property

Gets the appointment’s duration.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

Property Value

TypeDescription
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

SchedulerItemBase Class

SchedulerItemBase Members

DevExpress.Xpf.Scheduling Namespace