Skip to main content
All docs
V25.1
  • 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

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

    Parameters

    Name Type Description
    x DateTimeRange

    The time range.

    y DateTimeRange

    The time range.

    Optional Parameters

    Name Type Default Description
    includeBounds Boolean True

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

    Returns

    Type Description
    Boolean

    true if specified time ranges intersect; otherwise, false.

    See Also