Back to Devexpress

AppointmentDragInfo.EditedAppointment Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentdraginfo.md

latest3.0 KB
Original Source

AppointmentDragInfo.EditedAppointment Property

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

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 (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

csharp
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

vb
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

AppointmentDragInfo Class

AppointmentDragInfo Members

DevExpress.XtraScheduler Namespace