Skip to main content

DateTimeRange.Union(DateTimeRange, DateTimeRange) Method

Returns a datetime range which is composed of the two given time ranges.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

public static DateTimeRange Union(
    DateTimeRange x,
    DateTimeRange y
)

Parameters

Name Type Description
x DateTimeRange

A DateTimeRange object which represents the first time range to be united.

y DateTimeRange

A DateTimeRange object which represents the second time range to be united.

Returns

Type Description
DateTimeRange

A DateTimeRange object representing the union of the two time 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