Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.RemoveAppointment(AppointmentItem, Boolean) Method

Removes the specified appointment from the AppointmentItems collection.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public bool RemoveAppointment(
    AppointmentItem apt,
    bool showDeleteOccurrenceWindow = false
)

#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