Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Wpf.Scheduling

    Declaration

    public bool RestoreAppointment(
        AppointmentItem apt
    )

    Parameters

    Name Type Description
    apt AppointmentItem

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

    Returns

    Type Description
    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