OccurrenceCalculator.FindFirstOccurrenceIndex(DateTimeRange, TimeSpan) Method
Searches for the first occurrence that is within the specified interval and corresponds to the calculator’s pattern.
Namespace: DevExpress.XamarinForms.Scheduler
Assembly: DevExpress.XamarinForms.Scheduler.dll
NuGet Package: DevExpress.XamarinForms.Scheduler
Declaration
public int FindFirstOccurrenceIndex(
DateTimeRange interval,
TimeSpan patternDuration
)
Parameters
| Name | Type | Description |
|---|---|---|
| interval | DateTimeRange | The time interval in which the occurrence is searched. |
| patternDuration | TimeSpan | The duration of the pattern (AppointmentItem.Interval). |
Returns
| Type | Description |
|---|---|
| Int32 | The index of the first appointment from the occurrence chain that is within the specified interval; |
See Also