Skip to main content

Appointment.Delete() Method

In This Article

Deletes the Appointment object from the appointment collection to which it belongs.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public override void Delete()

#Remarks

The Delete method performs different actions on the appointment according to its Appointment.Type. The table below lists possible appointment types and the actions which this method performs.

Appointment Type Action
Normal The appointment is removed from the AppointmentCollection.
Pattern The pattern appointment is removed from the AppointmentCollection. All other recurring appointments in its series (appointments of the Occurrence, ChangedOccurrence and DeletedOccurrence types) are also removed.
Occurrence The Appointment.Type of the appointment is changed to DeletedOccurrence, and this appointment is added to the pattern's collection of exceptions which is returned via its Appointment.GetExceptions method.
ChangedOccurrence The Appointment.Type of the appointment is changed to DeletedOccurrence.
DeletedOccurrence This appointment is removed from the recurrence pattern's collection of exceptions (returned via the Appointment.GetExceptions method), and the new Occurrence appointment is added in its place.
See Also