corelibraries-devexpress-dot-xtrascheduler-dot-appointment.md
Gets or sets the start date and time of the appointment.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
DateTime Start { get; set; }
Property Start As Date
| Type | Description |
|---|---|
| DateTime |
A DateTime value that is the start of the appointment.
|
The Start property and the Appointment.Duration property specify the value of the Appointment.End property for the appointment. This value is always calculated as End = Start + Duration.
Note
If the Appointment.AllDay property is set to true , then the start date of the appointment is the Date of the Start , and the start time of the appointment is 0:00.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Start 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-drag-drop-appointments-from-grid/CS/T179722/Form1.cs#L65
DateTime srcStart = e.SourceAppointment.Start;
DateTime newStart = e.EditedAppointment.Start;
winforms-scheduler-sync-with-ews/CS/EWSSyncExample/ExchangeExampleForm.cs#L28
var apt2 = apt.CreateException(DevExpress.XtraScheduler.AppointmentType.ChangedOccurrence, 3);
apt2.Start = now.AddDays(3).AddHours(2);
var appointment = DevExpress.XtraScheduler.Compatibility.StaticAppointmentFactory.CreateAppointment(AppointmentType.Pattern);
appointment.Start = scheduledJob.StartDate.ToLocalTime();
appointment.RecurrenceInfo.FromXml(scheduledJob.SerializedRecurrenceInfo);
winforms-scheduler-recurrence-series-occurrencecalculator/CS/OccurrenceCalculatorSample/Form1.cs#L28
apt.Subject = "MyTestAppointment";
apt.Start = DateTime.Today.AddHours(10);
apt.End = apt.Start.AddHours(3);
winforms-scheduler-enforce-task-dependencies-gantt-view/CS/GanttRestrictions/Form1.cs#L56
DateTime checkTime = schedulerDataStorage1.Appointments.Items.GetAppointmentById(dep.ParentId).End;
if (apt.Start < checkTime)
return true;
winforms-scheduler-drag-drop-appointments-from-grid/VB/T179722/Form1.vb#L60
Dim moveEventMsg As String = "Moving the event from {0} on {1} to {2} on {3}."
Dim srcStart As System.DateTime = e.SourceAppointment.Start
Dim newStart As System.DateTime = e.EditedAppointment.Start
winforms-scheduler-sync-with-ews/VB/EWSSyncExample/ExchangeExampleForm.vb#L30
Dim apt2 = apt.CreateException(DevExpress.XtraScheduler.AppointmentType.ChangedOccurrence, 3)
apt2.Start = now.AddDays(3).AddHours(2)
Dim appointment = DevExpress.XtraScheduler.Compatibility.StaticAppointmentFactory.CreateAppointment(AppointmentType.Pattern)
appointment.Start = scheduledJob.StartDate.ToLocalTime()
appointment.RecurrenceInfo.FromXml(scheduledJob.SerializedRecurrenceInfo)
winforms-scheduler-recurrence-series-occurrencecalculator/VB/OccurrenceCalculatorSample/Form1.vb#L26
apt.Subject = "MyTestAppointment"
apt.Start = Date.Today.AddHours(10)
apt.End = apt.Start.AddHours(3)
winforms-scheduler-import-google-calendar/VB/GoogleCalendarExample/RecurrencePatternParser.vb#L45
Dim pattern As Appointment = Storage.CreateAppointment(AppointmentType.Pattern)
pattern.Start = start
pattern.End = [end]
See Also