Back to Devexpress

SchedulerControl.RestoreAppointment(AppointmentItem) Method

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-restoreappointment-x28-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-x29.md

latest2.4 KB
Original Source

SchedulerControl.RestoreAppointment(AppointmentItem) Method

Reverts the specified appointment of the AppointmentType.ChangedOccurrence or AppointmentType.DeletedOccurrence type to the AppointmentType.Occurrence type.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public bool RestoreAppointment(
    AppointmentItem apt
)
vb
Public Function RestoreAppointment(
    apt As AppointmentItem
) As Boolean

Parameters

NameTypeDescription
aptAppointmentItem

The DevExpress.Xpf.Scheduling.AppointmentItem object that is a changed occurrence to restore.

|

Returns

TypeDescription
Boolean

true, if the appointment could not be restored; otherwise, false.

|

Remarks

If the appointment passed to method’s appointment parameter is of any type other than the AppointmentType.ChangedOccurrence and AppointmentType.DeletedOccurrence, an exception is thrown.

The method does not restore the specified appointment and returns false in either of the following cases:

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace