Skip to main content

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

public AppointmentBaseCollection Conflicts { get; }

#Property Value

Type Description
AppointmentBaseCollection

A DevExpress.XtraScheduler.AppointmentBaseCollection object which contains all appointments which are in conflict with the current one.

#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 SchedulerControl.AllowAppointmentConflicts event has occurred, this will indicate that there are no conflicts. If there is at least one item in the Conflicts collection, it is considered that there is a conflict, and in this case, the operation can not be performed by an end-user.

#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:

See Also