corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdraginfo.md
Gets the appointment being modified in the drag-and-drop operation.
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 (AppointmentDragInfo.SourceAppointment) is copied into a new EditedAppointment object.
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#L85
foreach (AppointmentDragInfo aptInfo in e.PrimaryAppointmentInfos) {
var apt = aptInfo.EditedAppointment;
exchangeList.Add(new AppointmentExchangeData() {
winforms-scheduler-drag-drop-appointments-from-grid/VB/T179722/Form1.vb#L76
For Each aptInfo As DevExpress.XtraScheduler.AppointmentDragInfo In e.PrimaryAppointmentInfos
Dim apt = aptInfo.EditedAppointment
exchangeList.Add(New T179722.AppointmentExchangeData() With {.Subject = apt.Subject, .Description = apt.Description, .Start = System.DateTime.MinValue, .Duration = apt.Duration, .LabelKey = CInt(apt.LabelKey), .StatusKey = CInt(apt.StatusKey)})
See Also