Skip to main content

AppointmentOperationEventArgs Class

Provides data for the AllowAppointment~ events of the SchedulerControl.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public class AppointmentOperationEventArgs :
    AppointmentEventArgs

#Remarks

The AllowAppointment~ events occur when an end-user tries to perform a particular action, defined by the AllowAppointment~ event, and the corresponding AllowAppointment~ property of the OptionsCustomization object is set to Custom. The AppointmentOperationEventArgs class introduces the AppointmentOperationEventArgs.Allow property that specifies whether the particular action is allowed to be performed by an end-user or not. The processed appointment is identified by the AppointmentEventArgs.Appointment property.

NOTE

AppointmentOperationEventArgs objects are automatically created, initialized and passed to handlers of the AllowAppointment~ events .

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

#Inheritance

Object
EventArgs
AppointmentEventArgs
AppointmentOperationEventArgs
See Also