Back to Devexpress

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

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-addappointments-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-system-dot-boolean-x29.md

latest2.9 KB
Original Source

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

Adds the specified appointments to the AppointmentItems collection.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public bool AddAppointments(
    IEnumerable<AppointmentItem> appointments,
    bool showConflictsMessageBox = true
)
vb
Public Function AddAppointments(
    appointments As IEnumerable(Of AppointmentItem),
    showConflictsMessageBox As Boolean = True
) As Boolean

Parameters

NameTypeDescription
appointmentsIEnumerable<AppointmentItem>

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

|

Optional Parameters

NameTypeDefaultDescription
showConflictsMessageBoxBooleanTrue

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

|

Returns

TypeDescription
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

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace