SchedulerControl.AppointmentResized Event
Occurs after the user modifies the appointment’s interval by dragging its border with the mouse.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Scheduler
Declaration
Event Data
The AppointmentResized event's data class is AppointmentResizeEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Allow | Specifies whether the appointment can be resized. |
EditedAppointment | Gets the appointment being edited in the resize event. |
Handled | Gets or sets whether the resize operation is handled, and therefore no default processing is required. |
HitInterval | Gets the time interval represented by the time cell to which the appointment’s side is moved. |
HitResource | Gets the resource assigned to cells to which an appointment’s side is moved. |
ResizedSide | Indicates which appointment side is being moved when the appointment is resized. |
SourceAppointment | Gets the source appointment in the resize event. |
Remarks
The event arguments provides information on an appointment before and after resizing, the resource and time interval associated with time cells to which the appointment’s edge is moving, and also indicates which side of the appointment is moved.
The AppointmentResized event is raised after the SchedulerControl.AppointmentResizing event series, and before the SchedulerStorageBase.AppointmentChanging event.
To cancel resizing, set the AppointmentResizeEventArgs.Allow property to false and the AppointmentResizeEventArgs.Handled property - to true.
Note
When the AppointmentResized event occurs, changes are not applied to the appointment yet. Resize operation can be canceled.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentResized event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.