Back to Devexpress

ReminderBase.TimeBeforeStart Property

corelibraries-devexpress-dot-xtrascheduler-dot-reminderbase-91074360.md

latest4.4 KB
Original Source

ReminderBase.TimeBeforeStart Property

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

Declaration

csharp
public virtual TimeSpan TimeBeforeStart { get; set; }
vb
Public Overridable Property TimeBeforeStart As TimeSpan

Property Value

TypeDescription
TimeSpan

A TimeSpan structure which is an interval before the appointment’s start time. Default is 15 minutes.

|

Remarks

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

csharp
aptPattern.HasReminder = true;
aptPattern.Reminder.TimeBeforeStart = TimeSpan.FromSeconds(timeBeforeStart);

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

csharp
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

vb
aptPattern.HasReminder = True
aptPattern.Reminder.TimeBeforeStart = TimeSpan.FromSeconds(timeBeforeStart)

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

vb
Dim reminder As DevExpress.XtraScheduler.Reminder = schedulerAppointment.CreateNewReminder()
reminder.TimeBeforeStart = TimeSpan.FromMinutes(exchangeAppointment.ReminderMinutesBeforeStart)
schedulerAppointment.Reminders.Add(reminder)

See Also

AlertTime

RemindTimeChanged

ReminderBase Class

ReminderBase Members

DevExpress.XtraScheduler Namespace