Skip to main content

OccurrenceCalculator.FindLastOccurrenceIndex(TimeInterval, Appointment) Method

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

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public int FindLastOccurrenceIndex(
    TimeInterval interval,
    Appointment pattern
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object, representing 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 last appointment from the occurrence chain that falls within the specified interval, or -1 if the specified interval can not contain an occurrence.

See Also