DateTimeRange.Intersect(DateTimeRange, DateTimeRange) Method
Returns a datetime range that is the intersection of the two given ranges.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
x | DateTimeRange | A DateTimeRange object which represents the first time range. |
y | DateTimeRange | A DateTimeRange object which represents the second time range. |
Returns
Type | Description |
---|---|
DateTimeRange | A DateTimeRange object representing the intersection of two time ranges. If the two given time ranges do not intersect, the DateTimeRange.Empty value is returned. |
Remarks
The DateTimeRange.Start value of the resulting DateTimeRange is set to the DateTimeRange.Start time of the range which starts last. The DateTimeRange.End is set to the DateTimeRange.End time of the range that ends first.
See Also