Skip to main content

Appointment.GetOccurrence(Int32) Method

Gets an occurrence at a specific position within a chain of recurring appointments.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public Appointment GetOccurrence(
    int recurrenceIndex
)

#Parameters

Name Type Description
recurrenceIndex Int32

A zero-based integer which identifies the index of the required occurrence in the chain of recurring appointments.

#Returns

Type Description
Appointment

An Appointment object which is an occurrence at the specified position.

#Remarks

For the recurring appointment it is necessary to create an appointment of the AppointmentType.Pattern type. At run time, each pattern appointment generates a series of appointments, which is called a "recurrence chain". A recurrence chain is a series of regular occurrences (individual appointments) which will occur one after another at specified time intervals. An individual appointment (regular occurrence) in the chain has its Appointment.Type property set to AppointmentType.Occurrence. Each occurrence in the chain is identified by a zero-based recurrence index specified by the Appointment.RecurrenceIndex property.

The GetOccurrence method allows you to get an occurrence at a specific recurrence position. If an occurrence at the specified position has been modified, the GetOccurrence method returns the modified occurrence. If an occurrence at the specified position is deleted, the GetOccurrence method returns null.

See Also