A newer version of this page is available. Switch to the current version.

TimeInterval.Duration Property

Gets or sets the duration of the time interval.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll


public virtual TimeSpan Duration { get; set; }
Public Overridable Property Duration As TimeSpan

Property Value

Type Description

A TimeSpan value representing the duration of the time interval.


The Duration property and the TimeInterval.Start property specify the value of the TimeInterval.End property for the time interval. This value is always calculated as End = Start + Duration.

Note: If the TimeInterval.AllDay property is set to true, then the Duration is always divisible by 24 hours.

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

See Also