corelibraries-devexpress-dot-xtrascheduler-dot-appointment-b6348cf9.md
Gets the pattern appointment for the current appointment.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
Appointment RecurrencePattern { get; }
ReadOnly Property RecurrencePattern As Appointment
| Type | Description |
|---|---|
| Appointment |
An Appointment object that is the pattern appointment or null if the current appointment is not recurring.
|
If an appointment is recurring (see the Appointment.IsRecurring property) it is an occurrence in the series which starts with a pattern appointment and whose characteristics are defined by that pattern. Use the RecurrencePattern property to obtain the pattern of the current appointment. A pattern appointment has the Appointment.Type property set to AppointmentType.Pattern. The recurrence information defined by the pattern appointment can be accessed via the Appointment.RecurrenceInfo property.
Note
If the current appointment does not belong to a recurrence series, the RecurrencePattern property returns null ( Nothing is Visual Basic).
The following code snippets (auto-collected from DevExpress Examples) contain references to the RecurrencePattern property.
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.
winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L65
Appointment apt = e.ViewInfo.Appointment;
if (apt.HasReminder && apt.Type == AppointmentType.Occurrence && apt.RecurrencePattern != null) {
Appointment pattern = apt.RecurrencePattern;
if (appointment.IsRecurring)
appointment = e.Appointment.RecurrencePattern;
// Obtain source object if needed
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L67
Dim apt As Appointment = e.ViewInfo.Appointment
If apt.HasReminder AndAlso apt.Type = AppointmentType.Occurrence AndAlso apt.RecurrencePattern IsNot Nothing Then
Dim pattern As Appointment = apt.RecurrencePattern
See Also