Skip to main content

OccurrenceCalculator.FindFirstOccurrenceIndex(TimeInterval, Appointment) Method

Searches for the first occurrence which corresponds to the pattern and is located within the specified interval.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public int FindFirstOccurrenceIndex(
    TimeInterval interval,
    Appointment pattern
)

#Parameters

Name Type Description
interval TimeInterval

A DevExpress.XtraScheduler.TimeInterval object which specifies the time span to be searched.

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 first appointment from the occurrence chain that falls within the specified interval, or -1 if the specified interval cannot contain an occurrence.

See Also