SchedulerControl.DeleteAppointment(Appointment) Method
Deletes the specified appointment from the scheduler’s storage.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
public void DeleteAppointment(
Appointment apt
)
#Parameters
Name | Type | Description |
---|---|---|
apt | Appointment | An Appointment object that is the appointment to delete. |
#Remarks
The DeleteAppointment method performs different actions on the appointment according to its Appointment.Type. The following is a list of the possible appointment types and the actions which this method performs.
Appointment Type | Action |
---|---|
Normal | The appointment is removed from the Appointment |
Pattern | The pattern appointment is removed from the Appointment |
Occurrence | The Appointment. |
Changed |
The Appointment. |
Deleted |
This appointment is removed from the exceptions collection (returned via the Appointment. |
End-users can delete appointments by pressing the DEL key or using the context menu.
If an appointment exception is deleted, the Confirm Delete dialog is displayed (see the image below). This dialog allows you to select whether the current occurrence or all occurrences of the appointment should be deleted.