Skip to main content

OccurrenceCalculator.FindOccurrenceIndex(DateTime, Appointment) Method

Searches for the occurrence which belongs to the pattern series and starts at the specified date.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

public int FindOccurrenceIndex(
    DateTime date,
    Appointment pattern
)

Parameters

Name Type Description
date DateTime

A DateTime object, which is the start date of the occurrence to search for.

pattern Appointment

An Appointment instance, which is the pattern for the occurrence series.

Returns

Type Description
Int32

An integer value, which is the index of the appointment in the occurrence series, or -1 if the search fails.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindOccurrenceIndex(DateTime, Appointment) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also