Skip to main content

TimeInterval(DateTime, TimeSpan) Constructor

Initializes a new instance of the TimeInterval class with the specified start date and duration.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public TimeInterval(
    DateTime start,
    TimeSpan duration
)

Parameters

Name Type Description
start DateTime

A DateTime value that specifies the start date of the interval. This value is assigned to the TimeInterval.Start property.

duration TimeSpan

A TimeSpan value that specifies the duration of the interval. This value is assigned to the TimeInterval.Duration property.

Remarks

Note that the duration.Ticks should be greater than or equal to 0.

See Also