AppointmentConflictEventArgs.Conflicts Property
Gets the collection of appointments which are considered to be in conflict with the current appointment.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
Appointment |
A DevExpress. |
#Remarks
The Conflicts property contains all appointments which are considered to be in conflict with the current appointment (the appointment for which this event was raised). The current appointment can be accessed via the AppointmentEventArgs.Appointment property.
NOTE
If the Conflicts collection is empty after the Scheduler
#Examples
This example demonstrates how to prevent end-users from creating appointments within a certain time interval (from 2 PM to 3 PM). To implement end-user restrictions, handle the SchedulerControl.AllowAppointmentCreate event to prevent end-users from creating appointments within a certain time interval and the SchedulerControl.AllowAppointmentConflicts event to prevent an existing appointment from being dragged to the same time interval: