Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerItemBase.Duration Property

Gets the appointment’s duration.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.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