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.SetPatternReference(AppointmentItem, Int32) Method

Sets recurrence index to the appointment.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public void SetPatternReference(
    AppointmentItem pattern,
    int recurrenceIndex
)

#Parameters

Name Type Description
pattern AppointmentItem

A DevExpress.Xpf.Scheduling.AppointmentItem object that is the recurrence pattern.

recurrenceIndex Int32

An integer that specifies the recurrence index.

#Remarks

Use the SetPatternReference method to change the RecurrenceIndex value. If the appointment is not an exception in a recurring series, the method does nothing. If the SchedulerControl.AppointmentItems collection does not contain the appointment, a System.InvalidOperationException is thrown.

See Also