corelibraries-devexpress-dot-xtrascheduler-dot-reminderbase-91074360.md
Gets or sets the time interval before the appointment’s start time.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public virtual TimeSpan TimeBeforeStart { get; set; }
Public Overridable Property TimeBeforeStart As TimeSpan
| Type | Description |
|---|---|
| TimeSpan |
A TimeSpan structure which is an interval before the appointment’s start time. Default is 15 minutes.
|
Use the TimeBeforeStart property to specify a period of time before the appointment’s start when you should be reminded. The alert time is calculated using the following formula: ReminderBase.AlertTime = Appointment.Start - ReminderBase.TimeBeforeStart.
Changing the TimeBeforeStart property’s value raises the ReminderBase.RemindTimeChanged event.
Note
The default value of the TimeBeforeStart property is 15 minutes.
The following code snippets (auto-collected from DevExpress Examples) contain references to the TimeBeforeStart 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#L104
aptPattern.HasReminder = true;
aptPattern.Reminder.TimeBeforeStart = TimeSpan.FromSeconds(timeBeforeStart);
winforms-scheduler-sync-with-ews/CS/EWSSyncExample/Synchronizer.cs#L305
DevExpress.XtraScheduler.Reminder reminder = schedulerAppointment.CreateNewReminder();
reminder.TimeBeforeStart = TimeSpan.FromMinutes(exchangeAppointment.ReminderMinutesBeforeStart);
schedulerAppointment.Reminders.Add(reminder);
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L106
aptPattern.HasReminder = True
aptPattern.Reminder.TimeBeforeStart = TimeSpan.FromSeconds(timeBeforeStart)
winforms-scheduler-sync-with-ews/VB/EWSSyncExample/Synchronizer.vb#L291
Dim reminder As DevExpress.XtraScheduler.Reminder = schedulerAppointment.CreateNewReminder()
reminder.TimeBeforeStart = TimeSpan.FromMinutes(exchangeAppointment.ReminderMinutesBeforeStart)
schedulerAppointment.Reminders.Add(reminder)
See Also