Skip to main content
A newer version of this page is available. .

TimeInterval.Duration Property

Gets or sets the duration of the time interval.

Namespace: DevExpress.XtraScheduler

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

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Duration property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also