All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SchedulerControl.RemoveAppointment(AppointmentItem, Boolean) Method

Removes the specified appointment from the AppointmentItems collection.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

public bool RemoveAppointment(
    AppointmentItem apt,
    bool showDeleteOccurrenceWindow = false
)
Public Function RemoveAppointment(
    apt As AppointmentItem,
    showDeleteOccurrenceWindow As Boolean = False
) As Boolean

Parameters

Name Type Description
apt AppointmentItem

A DevExpress.Xpf.Scheduling.AppointmentItem object to be removed from the AppointmentItems collection.

Optional Parameters

Name Type Default Description
showDeleteOccurrenceWindow Boolean

False

true, to display the message box that notifies about removing an occurrence; otherwise, false.

Returns

Type Description
Boolean

true, if the appointment has been removed from the AppointmentItems collection; otherwise, false.

Remarks

The method does not add the specified appointment and returns false, if the Cancel property of your AppointmentRemoving event implementation returns true.

See Also