corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdrageventargs-ebdef712.md
Gets the appointment being modified in the drag-and-drop event.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
public Appointment EditedAppointment { get; }
Public ReadOnly Property EditedAppointment As Appointment
| Type | Description |
|---|---|
| Appointment |
An Appointment object.
|
When a drag-and-drop action occurs, the dragged appointment (AppointmentDragEventArgs.SourceAppointment) is copied into a new EditedAppointment object. The EditedAppointment can be modified in the event handler.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditedAppointment 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#L77
void OnSchedulerControlAppointmentDrag(object sender, AppointmentDragEventArgs e) {
Appointment apt = e.EditedAppointment;
if (apt.Start == DateTime.MinValue)
winforms-scheduler-drag-drop-appointments-from-grid/VB/T179722/Form1.vb#L69
Private Sub OnSchedulerControlAppointmentDrag(ByVal sender As Object, ByVal e As DevExpress.XtraScheduler.AppointmentDragEventArgs)
Dim apt As DevExpress.XtraScheduler.Appointment = e.EditedAppointment
If apt.Start = System.DateTime.MinValue Then apt.Start = e.HitInterval.Start
See Also
AppointmentDragEventArgs Class