Skip to main content

DateTimeRange.IntersectsWith(DateTimeRange, Boolean) Method

Checks whether the time range intersects with the specified range.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

#Declaration

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

#Parameters

Name Type Description
x DateTimeRange

The range with which the intersection should be checked.

#Optional Parameters

Name Type Default
includeBounds Boolean True

#Returns

Type Description
Boolean

true if the current range intersects with the specified date-time range; otherwise, false.

See Also