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.v25.1.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
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 first appointment from the occurrence chain that falls within the specified interval, or -1 if the specified interval can not contain an occurrence. |
See Also