Appointment.GetOccurrence(Int32) Method
Gets an occurrence at the specified position within a series of recurring appointments.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
Appointment GetOccurrence(
int recurrenceIndex
)
#Parameters
Name | Type | Description |
---|---|---|
recurrence |
Int32 | A zero-based integer which identifies the index of an occurrence in the series of recurring appointments. |
#Returns
Type | Description |
---|---|
Appointment | An Appointment object which is an occurrence at the specified position. |
#Remarks
An appointment of the AppointmentType.Pattern type starts the series of recurring appointments. Each occurrence in the series is identified by a zero-based recurrence index specified by the Appointment.RecurrenceIndex property.
The GetOccurrence method allows you to get an occurrence at the specified position. If an occurrence at the specified position has been modified, the GetOccurrence method returns the modified occurrence (appointment exception). If an occurrence at the specified position is deleted, the GetOccurrence method returns null.
Note
If the current appointment is not a patten (its Appointment.
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetOccurrence(Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.