New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class AppointmentResizingBehavior

Inheritance: objectAppointmentResizingBehavior

Constructors

C#
public AppointmentResizingBehavior(RadScheduler scheduler)
Parameters:schedulerRadScheduler
C#
public AppointmentResizingBehavior(SchedulerVisualElement activeOwner)
Parameters:activeOwnerSchedulerVisualElement

Fields

C#
protected bool downResize
C#
protected bool leftResize
C#
protected float resizeStepOffset
C#
protected bool rightResize
C#
protected bool upResize

Properties

Gets or sets the active resizing appointment.

C#
public IEvent ActiveAppointment { get; }

Gets or sets a value indicating whether the appointment areas in DayView should be automatically scrolled when dragging off their bounds.

C#
public bool AutoScrollDayViewOnResize { get; set; }

Gets or sets the bounds offset which specifies the size of the sizing rectangles.

C#
public int CursorBoundsOffset { get; set; }

Gets or sets whether the user is currently resizing the active appointment.

C#
public virtual bool IsResizing { get; }

Gets or sets the resize minutes.

C#
public int ResizeMinutes { get; set; }

Methods

C#
public bool EndResize()
Returns:

bool

Ends the appointment resizing.

C#
public virtual bool EndResize(IEvent appointment)
Parameters:appointmentIEventReturns:

bool

C#
public ResizeInformation GetResizeInformation()
Returns:

ResizeInformation

C#
protected virtual ResizeOptions GetResizeOptions(SchedulerVisualElement owner)
Parameters:ownerSchedulerVisualElementReturns:

ResizeOptions

C#
protected virtual bool HandleAppointmentHorizontalResize(SchedulerCellElement cell, IEvent appointment)
Parameters:cellSchedulerCellElementappointmentIEventReturns:

bool

C#
protected virtual bool HandleAppointmentVerticalResize(SchedulerCellElement cell, IEvent appointment)
Parameters:cellSchedulerCellElementappointmentIEventReturns:

bool

C#
protected virtual void OnAppointmentResized(AppointmentResizedEventArgs args)
Parameters:argsAppointmentResizedEventArgs
C#
protected virtual void OnAppointmentResizing(AppointmentResizingEventArgs cancelArgs)
Parameters:cancelArgsAppointmentResizingEventArgs
C#
protected virtual void OnFinished(IEvent appointment)
Parameters:appointmentIEvent
C#
protected virtual bool OnInitialized()
Returns:

bool

Requests a resize start.

C#
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, bool start)
Parameters:appointmentAppointmentElementnewOwnerSchedulerVisualElementstartboolReturns:

bool

Requests a resize start.

C#
public virtual bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions, bool start)
Parameters:appointmentAppointmentElementnewOwnerSchedulerVisualElementcursorPositionPointresizeOptionsResizeOptionsstartboolReturns:

bool

Requests a resize start.

C#
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions)
Parameters:appointmentAppointmentElementnewOwnerSchedulerVisualElementcursorPositionPointresizeOptionsResizeOptionsReturns:

bool

Requests a resize start.

C#
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner)
Parameters:appointmentAppointmentElementnewOwnerSchedulerVisualElementReturns:

bool

Resizes an appointment to a given position.

C#
public virtual bool Resize(Point mousePosition, IEvent appointment)
Parameters:mousePositionPointappointmentIEventReturns:

bool

Resizes an appointment to a given position.

C#
public virtual bool Resize(Point mousePosition)
Parameters:mousePositionPointReturns:

bool

Represents the horizontal resizing.

C#
protected virtual bool ResizeHorizontally(Point mousePosition, IEvent appointment)
Parameters:mousePositionPointappointmentIEventReturns:

bool

Represents the vertical resizing.

C#
protected virtual bool ResizeVertically(Point mousePosition, IEvent appointment)
Parameters:mousePositionPointappointmentIEventReturns:

bool

C#
protected virtual void UpdateMouseCursor()

Updates the current mouse cursor.

C#
protected virtual bool UpdateMouseCursor(Point mousePosition, Rectangle nearRect, Rectangle farRect)
Parameters:mousePositionPoint

The current position

nearRectRectangle

The top or left area of the appointment which can start a resize

farRectRectangle

The bottom or right area of the appointment which can start a resize

Returns:

bool

True if the mouse position is in a resize location, false otherwise.

C#
public void UpdateResizeOptions(ResizeOptions resizeOptions)
Parameters:resizeOptionsResizeOptions
C#
protected virtual bool ValidateExceptionDates(IEvent resized, DateTime startDate, TimeSpan duration)
Parameters:resizedIEventstartDateDateTimedurationTimeSpanReturns:

bool

Events

Occurs when the appointment is resized.

C#
public event EventHandler<AppointmentResizedEventArgs> AppointmentResized

Occurs when the appointment is resizing.

C#
public event EventHandler<AppointmentResizingEventArgs> AppointmentResizing

Occurs when the resizing operation is finished.

C#
public event EventHandler<SchedulerAppointmentEventArgs> Finished

Occurs when the rezing request is initialized.

C#
public event EventHandler Initialized