AppointmentItem.GetOccurrence(Int32) Method
OBSOLETE
Use the following API instead: scheduler.
Gets an occurrence at the specified position within a series of recurring appointments.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
[Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)", false)]
public AppointmentItem 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 |
#Remarks
The GetOccurrence method of the pattern appointment allows you to get an occurrence at the specified position. Use the SchedulerControl.GetPattern property to obtain a pattern appointment.
If an occurrence at the specified position is changed, the GetOccurrence method returns the modified occurrence (appointment exception). If an occurrence at the specified position is deleted, the GetOccurrence method returns null.
Important
If the current appointment is not a pattern (its Appointment