Skip to main content

DateTimeRange.Intersect(DateTimeRange) Method

Computes the intersection of the current range with the specified range.

Namespace: DevExpress.XamarinForms.Scheduler

Assembly: DevExpress.XamarinForms.Scheduler.dll

NuGet Package: DevExpress.XamarinForms.Scheduler

#Declaration

C#
public DateTimeRange Intersect(
    DateTimeRange x
)

#Parameters

Name Type Description
x DateTimeRange

The range with which the intersection should be calculated.

#Returns

Type Description
DateTimeRange

The intersection of the current range and the specified range. Empty value if ranges do not intersect.

#Remarks

The resulting range’s Start is the Start of an initial range that begins last, and End is the End of an initial range that finishes first.

See Also