Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppointmentItem.GetOccurrence(Int32) Method

OBSOLETE

Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)

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
recurrenceIndex Int32

A zero-based integer which identifies the index of an occurrence in the series of recurring appointments.

#Returns

Type Description
AppointmentItem

An AppointmentItem object which is a regular recurring appointment in a series at the specified position.

#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 AppointmentItem.Type is not AppointmentType.Pattern), then calling the GetOccurrence method throws an exception.

See Also