OccurrenceCalculator.FindFirstOccurrenceIndex(DateTimeRange, TimeSpan) Method

Searches for the first occurrence that is within the specified interval and corresponds to the calculator's pattern.

Namespace: DevExpress.XamarinForms.Scheduler

Assembly: DevExpress.XamarinForms.Scheduler.dll


public int FindFirstOccurrenceIndex(
    DateTimeRange interval,
    TimeSpan patternDuration


Name Type Description
interval DateTimeRange

The time interval in which the occurrence is searched.

patternDuration TimeSpan

The duration of the pattern (AppointmentItem.Interval).


Type Description

The index of the first appointment from the occurrence chain that is within the specified interval; -1, if the specified interval does not contain any occurrence.

See Also