Skip to main content

TimeInterval.Duration Property

Gets or sets the duration of the time interval.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public virtual TimeSpan Duration { get; set; }

Property Value

Type Description
TimeSpan

A TimeSpan value representing the duration of the time interval.

Remarks

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