Skip to main content

SchedulerControl.AddAppointments(IEnumerable<AppointmentItem>, Boolean) Method

Adds the specified appointments to the AppointmentItems collection.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public bool AddAppointments(
    IEnumerable<AppointmentItem> appointments,
    bool showConflictsMessageBox = true
)

Parameters

Name Type Description
appointments IEnumerable<AppointmentItem>

A collection of DevExpress.Xpf.Scheduling.AppointmentItem objects to be added to the AppointmentItems collection.

Optional Parameters

Name Type Default Description
showConflictsMessageBox Boolean True

true, to display the message box that warns about conflicted appointments; otherwise, false.

Returns

Type Description
Boolean

true, if the appointments have been added to the AppointmentItems collection; otherwise, false.

Remarks

The method does not add the specified appointments and returns false in either of the following cases:

See Also