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

DateTimeRange.Union(DateTimeRange) Method

Returns a datetime range which is composed of the current time range and the given datetime range.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public DateTimeRange Union(
    DateTimeRange x
)

Parameters

Name Type Description
x DateTimeRange

A DateTimeRange object that is the time range to be united.

Returns

Type Description
DateTimeRange

A DateTimeRange object representing the union of the two datetime ranges.

Remarks

The DateTimeRange.Start value of the resulting DateTimeRange is set to the DateTimeRange.Start time of the range which starts first. The DateTimeRange.End is set to the DateTimeRange.End time of the range that ends last.

See Also