A newer version of this page is available. Switch to the current version.

AppointmentItem.CreateNewReminder() Method

Creates a reminder for the specified appointment.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

public ReminderItem CreateNewReminder()
Public Function CreateNewReminder As ReminderItem

Returns

Type Description
ReminderItem

A ReminderItem object that is the reminder for an appointment.

Remarks

The CreateNewReminder method creates a new reminder given the particular appointment AppointmentItem.Type. To associate a reminder with the specified appointment, add it to the AppointmentItem.Reminders collection. Default value of the ReminderItem.TimeBeforeStart property is 15 minutes and can be specified with the SchedulerControl.DefaultReminderTime property.

Examples

// Remove previous reminders
appointment.Reminders.Clear();
// Set multiple reminders for an appointment
ReminderItem reminder1 = appointment.CreateNewReminder();
ReminderItem reminder2 = appointment.CreateNewReminder();
reminder1.AlertTime = DateTime.Now.AddMinutes(15);
reminder2.TimeBeforeStart = new TimeSpan(0, 30, 0);

appointment.Reminders.Add(reminder1);
appointment.Reminders.Add(reminder2);
See Also