Skip to main content

DxSchedulerDateTimeRange.Intersect(DxSchedulerDateTimeRange, DxSchedulerDateTimeRange) Method

Returns a range that is the intersection of two specified ranges.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public static DxSchedulerDateTimeRange Intersect(
    DxSchedulerDateTimeRange x,
    DxSchedulerDateTimeRange y
)

Parameters

Name Type Description
x DxSchedulerDateTimeRange

The first range to check for intersection.

y DxSchedulerDateTimeRange

The second range to check for intersection.

Returns

Type Description
DxSchedulerDateTimeRange

The intersection of the current and specified ranges. If these ranges do not intersect, the Empty value is returned.

Remarks

The resulting range’s Start property is set to the latest date among start dates of two ranges. The resulting ranges’s End property is set to the earliest date among end dates of two ranges.

See Also