Hides specific appointments in the Scheduler control.
event PersistentObjectCancelEventHandler FilterAppointment
Event FilterAppointment As PersistentObjectCancelEventHandler
The FilterAppointment event's data class is PersistentObjectCancelEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets whether to cancel the operation.|
|Object||Gets the persistent object (appointment, resource or appointment dependency) for which the event occurs. Inherited from PersistentObjectEventArgs.|
Handle the FilterAppointment event to hide specific appointments in the Scheduler control. This event fires each time the layout of the Scheduler control changes (on resizing the control, adding a new appointment, modifying existing appointments, etc.) You can also force the layout update by calling the SchedulerViewBase.LayoutChanged method.
The FilterAppointment event occurs for each appointment in the Appointments storage, in turn. If the PersistentObjectCancelEventArgs.Cancel parameter is set to true for the currently processed appointment, then the Scheduler control does not display this appointment.
This event allows you to specify appointments for display. Do not modify appointment properties, and do not add or remove appointments within this event handler. An attempt to do so may result in an unhandled exception.