Back to Devexpress

Appointment.HasReminder Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointment-d3fdb65b.md

latest3.9 KB
Original Source

Appointment.HasReminder Property

Gets or sets a value that indicates whether one or more reminders are associated with the appointment.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
bool HasReminder { get; set; }
vb
Property HasReminder As Boolean

Property Value

TypeDescription
Boolean

true , if the appointment has at least one reminder; otherwise false.

|

Remarks

The HasReminder property can be used to determine whether the appointment has an associated reminder(s) (which can be accessed using the Appointment.Reminder property.)

Note

Once this property is set to true , a new Reminder object is created and assigned to the Appointment.Reminder property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the HasReminder 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

csharp
Appointment apt = e.ViewInfo.Appointment;
if (apt.HasReminder && apt.Type == AppointmentType.Occurrence && apt.RecurrencePattern != null) {
    Appointment pattern = apt.RecurrencePattern;

winforms-scheduler-sync-with-ews/CS/EWSSyncExample/Synchronizer.cs#L254

csharp
if((addReminders) && (schedulerAppointment.HasReminder))
    exchangeAppointment.ReminderMinutesBeforeStart = schedulerAppointment.Reminder.TimeBeforeStart.Minutes;

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L67

vb
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

winforms-scheduler-sync-with-ews/VB/EWSSyncExample/Synchronizer.vb#L240

vb
If (addReminders) AndAlso (schedulerAppointment.HasReminder) Then
    exchangeAppointment.ReminderMinutesBeforeStart = schedulerAppointment.Reminder.TimeBeforeStart.Minutes

See Also

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace