Class
AppointmentResizingBehavior

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class AppointmentResizingBehavior

Inheritance: objectAppointmentResizingBehavior

Constructors

AppointmentResizingBehavior(RadScheduler)

Declaration

cs-api-definition
public AppointmentResizingBehavior(RadScheduler scheduler)

Parameters

scheduler

RadScheduler

AppointmentResizingBehavior(SchedulerVisualElement)

Declaration

cs-api-definition
public AppointmentResizingBehavior(SchedulerVisualElement activeOwner)

Parameters

activeOwner

SchedulerVisualElement

Fields

downResize

Declaration

cs-api-definition
protected bool downResize

Field Value

bool

leftResize

Declaration

cs-api-definition
protected bool leftResize

Field Value

bool

resizeStepOffset

Declaration

cs-api-definition
protected float resizeStepOffset

Field Value

float

rightResize

Declaration

cs-api-definition
protected bool rightResize

Field Value

bool

upResize

Declaration

cs-api-definition
protected bool upResize

Field Value

bool

Properties

ActiveAppointment

Gets or sets the active resizing appointment.

Declaration

cs-api-definition
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

cs-api-definition
public bool AutoScrollDayViewOnResize { get; set; }

Property Value

bool

CursorBoundsOffset

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

Declaration

cs-api-definition
public int CursorBoundsOffset { get; set; }

Property Value

int

IsResizing

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

Declaration

cs-api-definition
public virtual bool IsResizing { get; }

Property Value

bool

ResizeMinutes

Gets or sets the resize minutes.

Declaration

cs-api-definition
public int ResizeMinutes { get; set; }

Property Value

int

Methods

EndResize()

Declaration

cs-api-definition
public bool EndResize()

Returns

bool

EndResize(IEvent)

Ends the appointment resizing.

Declaration

cs-api-definition
public virtual bool EndResize(IEvent appointment)

Parameters

appointment

IEvent

Returns

bool

GetResizeInformation()

Declaration

cs-api-definition
public ResizeInformation GetResizeInformation()

Returns

ResizeInformation

GetResizeOptions(SchedulerVisualElement)

Declaration

cs-api-definition
protected virtual ResizeOptions GetResizeOptions(SchedulerVisualElement owner)

Parameters

owner

SchedulerVisualElement

Returns

ResizeOptions

HandleAppointmentHorizontalResize(SchedulerCellElement, IEvent)

Declaration

cs-api-definition
protected virtual bool HandleAppointmentHorizontalResize(SchedulerCellElement cell, IEvent appointment)

Parameters

cell

SchedulerCellElement

appointment

IEvent

Returns

bool

HandleAppointmentVerticalResize(SchedulerCellElement, IEvent)

Declaration

cs-api-definition
protected virtual bool HandleAppointmentVerticalResize(SchedulerCellElement cell, IEvent appointment)

Parameters

cell

SchedulerCellElement

appointment

IEvent

Returns

bool

OnAppointmentResized(AppointmentResizedEventArgs)

Declaration

cs-api-definition
protected virtual void OnAppointmentResized(AppointmentResizedEventArgs args)

Parameters

args

AppointmentResizedEventArgs

OnAppointmentResizing(AppointmentResizingEventArgs)

Declaration

cs-api-definition
protected virtual void OnAppointmentResizing(AppointmentResizingEventArgs cancelArgs)

Parameters

cancelArgs

AppointmentResizingEventArgs

OnFinished(IEvent)

Declaration

cs-api-definition
protected virtual void OnFinished(IEvent appointment)

Parameters

appointment

IEvent

OnInitialized()

Declaration

cs-api-definition
protected virtual bool OnInitialized()

Returns

bool

RequestResize(AppointmentElement, SchedulerVisualElement)

Requests a resize start.

Declaration

cs-api-definition
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner)

Parameters

appointment

AppointmentElement

newOwner

SchedulerVisualElement

Returns

bool

RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions)

Requests a resize start.

Declaration

cs-api-definition
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions)

Parameters

appointment

AppointmentElement

newOwner

SchedulerVisualElement

cursorPosition

Point

resizeOptions

ResizeOptions

Returns

bool

RequestResize(AppointmentElement, SchedulerVisualElement, Point, ResizeOptions, bool)

Requests a resize start.

Declaration

cs-api-definition
public virtual bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, Point cursorPosition, ResizeOptions resizeOptions, bool start)

Parameters

appointment

AppointmentElement

newOwner

SchedulerVisualElement

cursorPosition

Point

resizeOptions

ResizeOptions

start

bool

Returns

bool

RequestResize(AppointmentElement, SchedulerVisualElement, bool)

Requests a resize start.

Declaration

cs-api-definition
public bool RequestResize(AppointmentElement appointment, SchedulerVisualElement newOwner, bool start)

Parameters

appointment

AppointmentElement

newOwner

SchedulerVisualElement

start

bool

Returns

bool

Resize(Point)

Resizes an appointment to a given position.

Declaration

cs-api-definition
public virtual bool Resize(Point mousePosition)

Parameters

mousePosition

Point

Returns

bool

Resize(Point, IEvent)

Resizes an appointment to a given position.

Declaration

cs-api-definition
public virtual bool Resize(Point mousePosition, IEvent appointment)

Parameters

mousePosition

Point

appointment

IEvent

Returns

bool

ResizeHorizontally(Point, IEvent)

Represents the horizontal resizing.

Declaration

cs-api-definition
protected virtual bool ResizeHorizontally(Point mousePosition, IEvent appointment)

Parameters

mousePosition

Point

appointment

IEvent

Returns

bool

ResizeVertically(Point, IEvent)

Represents the vertical resizing.

Declaration

cs-api-definition
protected virtual bool ResizeVertically(Point mousePosition, IEvent appointment)

Parameters

mousePosition

Point

appointment

IEvent

Returns

bool

UpdateMouseCursor()

Declaration

cs-api-definition
protected virtual void UpdateMouseCursor()

UpdateMouseCursor(Point, Rectangle, Rectangle)

Updates the current mouse cursor.

Declaration

cs-api-definition
protected virtual bool UpdateMouseCursor(Point mousePosition, Rectangle nearRect, Rectangle farRect)

Parameters

mousePosition

Point

The current position

nearRect

Rectangle

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

farRect

Rectangle

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.

UpdateResizeOptions(ResizeOptions)

Declaration

cs-api-definition
public void UpdateResizeOptions(ResizeOptions resizeOptions)

Parameters

resizeOptions

ResizeOptions

ValidateExceptionDates(IEvent, DateTime, TimeSpan)

Declaration

cs-api-definition
protected virtual bool ValidateExceptionDates(IEvent resized, DateTime startDate, TimeSpan duration)

Parameters

resized

IEvent

startDate

DateTime

duration

TimeSpan

Returns

bool

Events

AppointmentResized

Occurs when the appointment is resized.

Declaration

cs-api-definition
public event EventHandler<AppointmentResizedEventArgs> AppointmentResized

Event Value

EventHandler<AppointmentResizedEventArgs>

AppointmentResizing

Occurs when the appointment is resizing.

Declaration

cs-api-definition
public event EventHandler<AppointmentResizingEventArgs> AppointmentResizing

Event Value

EventHandler<AppointmentResizingEventArgs>

Finished

Occurs when the resizing operation is finished.

Declaration

cs-api-definition
public event EventHandler<SchedulerAppointmentEventArgs> Finished

Event Value

EventHandler<SchedulerAppointmentEventArgs>

Initialized

Occurs when the rezing request is initialized.

Declaration

cs-api-definition
public event EventHandler Initialized

Event Value

EventHandler