Back to Devexpress

Appointment.Reminder Property

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

latest5.2 KB
Original Source

Appointment.Reminder Property

Gets a reminder associated with the current appointment (the first reminder in the collection, if there are several reminders).

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
Reminder Reminder { get; }
vb
ReadOnly Property Reminder As Reminder

Property Value

TypeDescription
Reminder

A Reminder object that is a reminder used to provide a notification of a future appointment, the first reminder in the collection, if there are several reminders, or null ( Nothing in Visual Basic) if no reminder is associated with the appointment.

|

Remarks

To associate an appointment with the reminder, set its Appointment.HasReminder property to true. Once this property is set to true , a new Reminder object is created and assigned to the Reminder property. If the appointment has a reminder, the image is displayed.

You can also use the ISchedulerStorageBase.CreateReminder and Appointment.CreateNewReminder methods to create a new reminder instance and subsequently add it to the Appointment.Reminders collection.

Note

The Reminder property returns the first reminder in the Appointment.Reminders collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Reminder 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-mapping-converters/CS/SchedulerMappingConverterExample/MappingConverterReminderInfo.cs#L32

csharp
public object ConvertBack(object obj, Type targetType, object parameter) {
    if (((Appointment)parameter).Reminder != null) {
        DataRow appointmentRow = ((DataRowView)storage.GetObjectRow((Appointment)parameter)).Row;

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L67

csharp
Appointment pattern = apt.RecurrencePattern;
RecurringReminder reminder = (RecurringReminder)pattern.Reminder;
e.ViewInfo.ShowBell = reminder.AlertOccurrenceIndex <= apt.RecurrenceIndex;

winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/MappingConverterReminderInfo.vb#L34

vb
Public Function ConvertBack(ByVal obj As Object, ByVal targetType As Type, ByVal parameter As Object) As Object Implements ISchedulerMappingConverter.ConvertBack
    If DirectCast(parameter, Appointment).Reminder IsNot Nothing Then
        Dim appointmentRow As DataRow = CType(storage.GetObjectRow(DirectCast(parameter, Appointment)), DataRowView).Row

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

vb
Dim pattern As Appointment = apt.RecurrencePattern
Dim reminder As RecurringReminder = CType(pattern.Reminder, RecurringReminder)
e.ViewInfo.ShowBell = reminder.AlertOccurrenceIndex <= apt.RecurrenceIndex

See Also

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace