Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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