SchedulerControl.AddAppointments(IEnumerable<AppointmentItem>, Boolean) Method
In This Article
Adds the specified appointments to the AppointmentItems collection.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
public bool AddAppointments(
IEnumerable<AppointmentItem> appointments,
bool showConflictsMessageBox = true
)
#Parameters
Name | Type | Description |
---|---|---|
appointments | IEnumerable<Appointment |
A collection of DevExpress. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
show |
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 Appointment |
#Remarks
The method does not add the specified appointments and returns false in either of the following cases:
- The appointments collection is empty
- It would lead to conflicts restricted by the AllowAppointmentConflicts property and the CustomAllowAppointmentConflicts event
- The Cancel property of your AppointmentAdding event implementation returns true.
See Also