Skip to main content

OccurrenceCalculator.FindOccurrenceIndex(DateTime, Appointment) Method

Searches for the occurrence which corresponds to the pattern and starts at the specified time.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public int FindOccurrenceIndex(
    DateTime date,
    Appointment pattern
)

#Parameters

Name Type Description
date DateTime

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

pattern Appointment

An Appointment instance which is the pattern for the occurrence chain.

#Returns

Type Description
Int32

An integer value which is the index of the appointment from the occurrence chain that starts at the specified time, or -1 if the search fails.

See Also