Adds the specified appointment to the AppointmentItems collection.
public bool AddAppointment( AppointmentItem apt )
Public Function AddAppointment( apt As AppointmentItem ) As Boolean
A DevExpress.Xpf.Scheduling.AppointmentItem object to be added to the AppointmentItems collection.
true, if the appointment has been added to the AppointmentItems collection; otherwise, false.
The method does not add the specified appointment and returns false in either of the following cases:
- It would lead to conflicts restricted by the AllowAppointmentConflicts property and the CustomAllowAppointmentConflicts event
- The Cancel property of your AppointmentAdding event implementation returns true.