Back to Devexpress

Appointment.Start Property

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

latest6.9 KB
Original Source

Appointment.Start Property

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

Declaration

csharp
DateTime Start { get; set; }
vb
Property Start As Date

Property Value

TypeDescription
DateTime

A DateTime value that is the start of the appointment.

|

Remarks

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

csharp
DateTime srcStart = e.SourceAppointment.Start;
DateTime newStart = e.EditedAppointment.Start;

winforms-scheduler-sync-with-ews/CS/EWSSyncExample/ExchangeExampleForm.cs#L28

csharp
var apt2 = apt.CreateException(DevExpress.XtraScheduler.AppointmentType.ChangedOccurrence, 3);
apt2.Start = now.AddDays(3).AddHours(2);

report-server-how-to-manage-scheduled-jobs-from-a-windows-forms-application/CS/ScheduledTasksAPIClientDemo/SchedulerJobViewerForm.cs#L83

csharp
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

csharp
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

csharp
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

vb
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

vb
Dim apt2 = apt.CreateException(DevExpress.XtraScheduler.AppointmentType.ChangedOccurrence, 3)
apt2.Start = now.AddDays(3).AddHours(2)

report-server-how-to-manage-scheduled-jobs-from-a-windows-forms-application/VB/ScheduledTasksAPIClientDemo/SchedulerJobViewerForm.vb#L89

vb
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

vb
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

vb
Dim pattern As Appointment = Storage.CreateAppointment(AppointmentType.Pattern)
pattern.Start = start
pattern.End = [end]

See Also

End

Duration

AllDay

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace