Back to Devexpress

SchedulerControl.AppointmentResized Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-d229c0de.md

latest3.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event AppointmentResizeEventHandler AppointmentResized
vb
Public Event AppointmentResized As AppointmentResizeEventHandler

Event Data

The AppointmentResized event's data class is AppointmentResizeEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowSpecifies whether the appointment can be resized.
EditedAppointmentGets the appointment being edited in the resize event.
HandledGets or sets whether the resize operation is handled, and therefore no default processing is required.
HitIntervalGets the time interval represented by the time cell to which the appointment’s side is moved.
HitResourceGets the resource assigned to cells to which an appointment’s side is moved.
ResizedSideIndicates which appointment side is being moved when the appointment is resized.
SourceAppointmentGets 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.

See Also

AppointmentResizing

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace