ClassAppointmentResizingBehavior
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class AppointmentResizingBehavior
Inheritance: objectAppointmentResizingBehavior
Constructors
AppointmentResizingBehavior(RadScheduler)
Declaration
public AppointmentResizingBehavior(RadScheduler scheduler)
Parameters
scheduler
AppointmentResizingBehavior(SchedulerVisualElement)
Declaration
public AppointmentResizingBehavior(SchedulerVisualElement activeOwner)
Parameters
activeOwner
Fields
Properties
ActiveAppointment
Gets or sets the active resizing appointment.
AutoScrollDayViewOnResize
Gets or sets a value indicating whether the appointment areas in DayView should be automatically scrolled when dragging off their bounds.
Declaration
public bool AutoScrollDayViewOnResize { get; set; }
Property Value
CursorBoundsOffset
Gets or sets the bounds offset which specifies the size of the sizing rectangles.
IsResizing
Gets or sets whether the user is currently resizing the active appointment.
ResizeMinutes
Gets or sets the resize minutes.
Methods
EndResize(IEvent)
Ends the appointment resizing.
GetResizeInformation()
Declaration
public ResizeInformation GetResizeInformation()
Returns
GetResizeOptions(SchedulerVisualElement)
Declaration
protected virtual ResizeOptions GetResizeOptions(SchedulerVisualElement owner)
Parameters
owner
Returns
HandleAppointmentHorizontalResize(SchedulerCellElement, IEvent)
Declaration
protected virtual bool HandleAppointmentHorizontalResize(SchedulerCellElement cell, IEvent appointment)
Parameters
cell
appointment
Returns
HandleAppointmentVerticalResize(SchedulerCellElement, IEvent)
Declaration
protected virtual bool HandleAppointmentVerticalResize(SchedulerCellElement cell, IEvent appointment)
Parameters
cell
appointment
Returns
OnAppointmentResized(AppointmentResizedEventArgs)
Declaration
protected virtual void OnAppointmentResized(AppointmentResizedEventArgs args)
Parameters
args
OnAppointmentResizing(AppointmentResizingEventArgs)
Declaration
protected virtual void OnAppointmentResizing(AppointmentResizingEventArgs cancelArgs)
Parameters
cancelArgs
OnFinished(IEvent)
Declaration
protected virtual void OnFinished(IEvent appointment)
Parameters
appointment
RequestResize(AppointmentElement, SchedulerVisualElement)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner)
Parameters
appointment
newOwner
Returns
RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions)
Parameters
appointment
newOwner
cursorPosition
resizeOptions
Returns
RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions, bool)
Requests a resize start.
Declaration
public virtual bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions, bool start)
Parameters
appointment
newOwner
cursorPosition
resizeOptions
start
Returns
RequestResize(AppointmentElement, SchedulerVisualElement, bool)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, bool start)
Parameters
appointment
newOwner
start
Returns
Resize(Point)
Resizes an appointment to a given position.
Resize(Point, IEvent)
Resizes an appointment to a given position.
ResizeHorizontally(Point, IEvent)
Represents the horizontal resizing.
ResizeVertically(Point, IEvent)
Represents the vertical resizing.
UpdateMouseCursor()
Declaration
protected virtual void UpdateMouseCursor()
UpdateMouseCursor(Point, Rectangle, Rectangle)
Updates the current mouse cursor.
Declaration
protected virtual bool UpdateMouseCursor(Point mousePosition, Rectangle nearRect, Rectangle farRect)
Parameters
mousePosition
The current position
nearRect
The top or left area of the appointment which can start a resize
farRect
The bottom or right area of the appointment which can start a resize
Returns
True if the mouse position is in a resize location, false otherwise.
UpdateResizeOptions(ResizeOptions)
Declaration
public void UpdateResizeOptions(ResizeOptions resizeOptions)
Parameters
resizeOptions
Events
AppointmentResized
Occurs when the appointment is resized.
Declaration
public event EventHandler<AppointmentResizedEventArgs> AppointmentResized
Event Value
AppointmentResizing
Occurs when the appointment is resizing.
Declaration
public event EventHandler<AppointmentResizingEventArgs> AppointmentResizing
Event Value
Finished
Occurs when the resizing operation is finished.
Declaration
public event EventHandler<SchedulerAppointmentEventArgs> Finished
Event Value
Initialized
Occurs when the rezing request is initialized.