Skip to main content

TimeInterval.End Property

Gets or sets the end date and time of the time interval.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public virtual DateTime End { get; set; }

Property Value

Type Description
DateTime

A DateTime value representing the end of the time interval.

Remarks

The End property is usually specified by the TimeInterval.Start and TimeInterval.Duration properties, and is always calculated as End = Start + Duration. When setting the End property, the TimeInterval.Start property preserves its value, and the TimeInterval.Duration is changed according to the new value of the End property. If the new TimeInterval.End property value is less than the TimeInterval.Start property value, then an exception will be raised.

Note

If the TimeInterval.AllDay property is set to true, then the TimeOfDay of TimeInterval.Start and TimeInterval.End properties is always equal to 0:00:00, so that this time interval’s duration is always equal to a whole number of days.

The following code snippets (auto-collected from DevExpress Examples) contain references to the End 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