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.FindOccurrenceIndex(DateTime, TimeSpan) Method

Searches for the occurrence that starts at the specified date 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 FindOccurrenceIndex(
    DateTime date,
    TimeSpan patternDuration
)

#Parameters

Name Type Description
date DateTime

The start date of the occurrence to find.

patternDuration TimeSpan

The duration of the pattern (AppointmentItem.Interval).

#Returns

Type Description
Int32

The index of the appointment at the specified date; -1, if no occurrences start at the specified date.

See Also