Class AppointmentResizingBehavior
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class AppointmentResizingBehavior
Constructors
AppointmentResizingBehavior(RadScheduler)
Declaration
public AppointmentResizingBehavior(RadScheduler scheduler)
Parameters
RadScheduler
scheduler
|
AppointmentResizingBehavior(SchedulerVisualElement)
Declaration
public AppointmentResizingBehavior(SchedulerVisualElement activeOwner)
Parameters
SchedulerVisualElement
activeOwner
|
Fields
downResize
Declaration
protected bool downResize
Field Value
System.Boolean
|
leftResize
Declaration
protected bool leftResize
Field Value
System.Boolean
|
resizeStepOffset
Declaration
protected float resizeStepOffset
Field Value
System.Single
|
rightResize
Declaration
protected bool rightResize
Field Value
System.Boolean
|
upResize
Declaration
protected bool upResize
Field Value
System.Boolean
|
Properties
ActiveAppointment
Gets or sets the active resizing appointment.
Declaration
public IEvent ActiveAppointment { get; }
Property Value
IEvent
|
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
System.Boolean
|
CursorBoundsOffset
Gets or sets the bounds offset which specifies the size of the sizing rectangles.
Declaration
public int CursorBoundsOffset { get; set; }
Property Value
System.Int32
|
IsResizing
Gets or sets whether the user is currently resizing the active appointment.
Declaration
public virtual bool IsResizing { get; }
Property Value
System.Boolean
|
ResizeMinutes
Gets or sets the resize minutes.
Declaration
public int ResizeMinutes { get; set; }
Property Value
System.Int32
|
Methods
EndResize()
Declaration
public bool EndResize()
Returns
System.Boolean
|
EndResize(IEvent)
Ends the appointment resizing.
Declaration
public virtual bool EndResize(IEvent appointment)
Parameters
IEvent
appointment
|
Returns
System.Boolean
|
GetResizeInformation()
GetResizeOptions(SchedulerVisualElement)
Declaration
protected virtual ResizeOptions GetResizeOptions(SchedulerVisualElement owner)
Parameters
SchedulerVisualElement
owner
|
Returns
ResizeOptions
|
HandleAppointmentHorizontalResize(SchedulerCellElement, IEvent)
Declaration
protected virtual bool HandleAppointmentHorizontalResize(SchedulerCellElement cell, IEvent appointment)
Parameters
SchedulerCellElement
cell
|
IEvent
appointment
|
Returns
System.Boolean
|
HandleAppointmentVerticalResize(SchedulerCellElement, IEvent)
Declaration
protected virtual bool HandleAppointmentVerticalResize(SchedulerCellElement cell, IEvent appointment)
Parameters
SchedulerCellElement
cell
|
IEvent
appointment
|
Returns
System.Boolean
|
OnAppointmentResized(AppointmentResizedEventArgs)
Declaration
protected virtual void OnAppointmentResized(AppointmentResizedEventArgs args)
Parameters
AppointmentResizedEventArgs
args
|
OnAppointmentResizing(AppointmentResizingEventArgs)
Declaration
protected virtual void OnAppointmentResizing(AppointmentResizingEventArgs cancelArgs)
Parameters
AppointmentResizingEventArgs
cancelArgs
|
OnFinished(IEvent)
OnInitialized()
Declaration
protected virtual bool OnInitialized()
Returns
System.Boolean
|
RequestResize(AppointmentElement, SchedulerVisualElement)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner)
Parameters
AppointmentElement
appointment
|
SchedulerVisualElement
newOwner
|
Returns
System.Boolean
|
RequestResize(AppointmentElement, SchedulerVisualElement, Boolean)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, bool start)
Parameters
AppointmentElement
appointment
|
SchedulerVisualElement
newOwner
|
System.Boolean
start
|
Returns
System.Boolean
|
RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions)
Requests a resize start.
Declaration
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions)
Parameters
AppointmentElement
appointment
|
SchedulerVisualElement
newOwner
|
System.Drawing.Point
cursorPosition
|
ResizeOptions
resizeOptions
|
Returns
System.Boolean
|
RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions, Boolean)
Requests a resize start.
Declaration
public virtual bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions, bool start)
Parameters
AppointmentElement
appointment
|
SchedulerVisualElement
newOwner
|
System.Drawing.Point
cursorPosition
|
ResizeOptions
resizeOptions
|
System.Boolean
start
|
Returns
System.Boolean
|
Resize(Point)
Resizes an appointment to a given position.
Declaration
public virtual bool Resize(Point mousePosition)
Parameters
System.Drawing.Point
mousePosition
|
Returns
System.Boolean
|
Resize(Point, IEvent)
Resizes an appointment to a given position.
Declaration
public virtual bool Resize(Point mousePosition, IEvent appointment)
Parameters
System.Drawing.Point
mousePosition
|
IEvent
appointment
|
Returns
System.Boolean
|
ResizeHorizontally(Point, IEvent)
Represents the horizontal resizing.
Declaration
protected virtual bool ResizeHorizontally(Point mousePosition, IEvent appointment)
Parameters
System.Drawing.Point
mousePosition
|
IEvent
appointment
|
Returns
System.Boolean
|
ResizeVertically(Point, IEvent)
Represents the vertical resizing.
Declaration
protected virtual bool ResizeVertically(Point mousePosition, IEvent appointment)
Parameters
System.Drawing.Point
mousePosition
|
IEvent
appointment
|
Returns
System.Boolean
|
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
System.Drawing.Point
mousePosition
The current position |
System.Drawing.Rectangle
nearRect
The top or left area of the appointment which can start a resize |
System.Drawing.Rectangle
farRect
The bottom or right area of the appointment which can start a resize |
Returns
System.Boolean
True if the mouse position is in a resize location, false otherwise. |
UpdateResizeOptions(ResizeOptions)
Declaration
public void UpdateResizeOptions(ResizeOptions resizeOptions)
Parameters
ResizeOptions
resizeOptions
|
ValidateExceptionDates(IEvent, DateTime, TimeSpan)
Declaration
protected virtual bool ValidateExceptionDates(IEvent resized, DateTime startDate, TimeSpan duration)
Parameters
IEvent
resized
|
System.DateTime
startDate
|
System.TimeSpan
duration
|
Returns
System.Boolean
|
Events
AppointmentResized
Occurs when the appointment is resized.
Declaration
public event EventHandler<AppointmentResizedEventArgs> AppointmentResized
Event Type
System.EventHandler<AppointmentResizedEventArgs>
|
AppointmentResizing
Occurs when the appointment is resizing.
Declaration
public event EventHandler<AppointmentResizingEventArgs> AppointmentResizing
Event Type
System.EventHandler<AppointmentResizingEventArgs>
|
Finished
Occurs when the resizing operation is finished.
Declaration
public event EventHandler<SchedulerAppointmentEventArgs> Finished
Event Type
System.EventHandler<SchedulerAppointmentEventArgs>
|
Initialized
Occurs when the rezing request is initialized.
Declaration
public event EventHandler Initialized
Event Type
System.EventHandler
|