DateTimeRange.Intersect(DateTimeRange) Method
Returns a time interval which is the intersection of the current time range with the given datetime range.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
x | DateTimeRange | A DateTimeRange object which is the time range to be intersected. |
Returns
Type | Description |
---|---|
DateTimeRange | A DateTimeRange object which is the intersection of the two time ranges. If the two time ranges do not intersect, the DateTimeRange.Empty values 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