Back to Devexpress

AppointmentDragEventArgs.EditedAppointment Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdrageventargs-ebdef712.md

latest3.1 KB
Original Source

AppointmentDragEventArgs.EditedAppointment Property

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

Declaration

csharp
public Appointment EditedAppointment { get; }
vb
Public ReadOnly Property EditedAppointment As Appointment

Property Value

TypeDescription
Appointment

An Appointment object.

|

Remarks

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

csharp
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

vb
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

AppointmentDragEventArgs Members

DevExpress.XtraScheduler Namespace