Skip to main content

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.v24.1.dll

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

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