Skip to main content

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.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public int FindFirstOccurrenceIndex(
    DateTimeRange interval,
    TimeSpan patternDuration
)

Parameters

Name Type Description
interval DateTimeRange

The time interval in which the occurrence is searched.

patternDuration TimeSpan

The duration of the pattern (AppointmentItem.Interval).

Returns

Type Description
Int32

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