corelibraries-devexpress-dot-xtrascheduler-dot-reminderbase.md
Gets or sets the reminder’s alert time.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public DateTime AlertTime { get; set; }
Public Property AlertTime As Date
| Type | Description |
|---|---|
| DateTime |
A DateTime structure which specifies the reminder’s alert time.
|
The reminder’s alert time is calculated using the following formula: ReminderBase.AlertTime = Appointment.Start - ReminderBase.TimeBeforeStart.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AlertTime 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.
DataRow appointmentRow = ((DataRowView)storage.GetObjectRow((Appointment)parameter)).Row;
appointmentRow["AlertTime"] = ((Appointment)parameter).Reminder.AlertTime;
appointmentRow["TimeBeforeStart"] = System.Convert.ToInt32(((Appointment)parameter).Reminder.TimeBeforeStart.TotalSeconds);
winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L124
if (apt.HasReminder) {
memoEdit1.Text += "The reminder alert starts at " + apt.Reminder.AlertTime;
}
Dim appointmentRow As DataRow = CType(storage.GetObjectRow(DirectCast(parameter, Appointment)), DataRowView).Row
appointmentRow("AlertTime") = DirectCast(parameter, Appointment).Reminder.AlertTime
appointmentRow("TimeBeforeStart") = System.Convert.ToInt32(DirectCast(parameter, Appointment).Reminder.TimeBeforeStart.TotalSeconds)
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L127
If apt.HasReminder Then
memoEdit1.Text &= "The reminder alert starts at " & apt.Reminder.AlertTime
End If
See Also