Back to Devexpress

SchedulerControl.RemoveAppointment(AppointmentItem, Boolean) Method

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-removeappointment-x28-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-system-dot-boolean-x29.md

latest2.3 KB
Original Source

SchedulerControl.RemoveAppointment(AppointmentItem, Boolean) Method

Removes the specified appointment from the AppointmentItems collection.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

Parameters

NameTypeDescription
aptAppointmentItem

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

|

Optional Parameters

NameTypeDefaultDescription
showDeleteOccurrenceWindowBooleanFalse

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

|

Returns

TypeDescription
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

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace