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

TimeInterval.End Property

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public virtual DateTime End { get; set; }
Public Overridable Property End As Date

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.

See Also