Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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