Back to Devexpress

DateTimeRange.IntersectsWith(DateTimeRange, DateTimeRange, Boolean) Method

maui-devexpress-dot-maui-dot-scheduler-dot-datetimerange-dot-intersectswith-x28-devexpress-dot-maui-dot-scheduler-dot-datetimerange-devexpress-dot-maui-dot-scheduler-dot-datetimerange-system-dot-boolean-x29.md

latest1.4 KB
Original Source

DateTimeRange.IntersectsWith(DateTimeRange, DateTimeRange, Boolean) Method

Checks whether specified time ranges intersect.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
public static bool IntersectsWith(
    DateTimeRange x,
    DateTimeRange y,
    bool includeBounds = true
)

Parameters

NameTypeDescription
xDateTimeRange

The time range.

| | y | DateTimeRange |

The time range.

|

Optional Parameters

NameTypeDefaultDescription
includeBoundsBooleanTrue

true if the intersection takes into account the bounds of specified time ranges; otherwise, false.

|

Returns

TypeDescription
Boolean

true if specified time ranges intersect; otherwise, false.

|

See Also

DateTimeRange Struct

DateTimeRange Members

DevExpress.Maui.Scheduler Namespace