Skip to main content

WorkTimeCollection.Add(TimeSpan, TimeSpan) Method

Adds a time interval with the specified start and end time to the collection.

Namespace: DevExpress.XtraGantt.Scheduling

Assembly: DevExpress.XtraGantt.v24.1.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

public WorkTime Add(
    TimeSpan fromTime,
    TimeSpan toTime
)

Parameters

Name Type Description
fromTime TimeSpan

A TimeSpan structure that specifies the start time of the interval.

toTime TimeSpan

A TimeSpan structure that specifies the end time of the interval.

Returns

Type Description
WorkTime

An object that represents a time interval with the specified start and end time.

See Also