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

Provides the resize functionality for RadLayoutControl.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class LayoutControlResizingBehavior

Inheritance: objectLayoutControlResizingBehavior

Constructors

C#
public LayoutControlResizingBehavior(LayoutControlContainerElement owner)
Parameters:ownerLayoutControlContainerElement

Properties

Indicates whether the behavior is currently active.

C#
public bool IsResizing { get; }

Methods

Begins the resize operation given a LayoutControlSplitterItem.

C#
public bool BeginResize(LayoutControlSplitterItem splitter)
Parameters:splitterLayoutControlSplitterItem

The splitter item.

Returns:

bool

[true] if successful, [false] otherwise.

Begins the resize operation given a starting point and resize orientation.

C#
public bool BeginResize(Point point, Orientation resizeType)
Parameters:pointPoint

The starting point.

resizeTypeOrientation

The resize direction.

Returns:

bool

[true] if successful, [false] otherwise.

Ends the resize operation.

C#
public void EndResize()

Gets the mouse cursor that should be displayed at the specified position.

C#
public Cursor GetCursorAtPoint(Point point)
Parameters:pointPoint

The point in coordinates relative to the owning LayoutControlContainerElement.

Returns:

Cursor

The cursor.

C#
protected virtual void OnResized()
C#
protected virtual void OnResizeFinished()
C#
protected virtual void OnResizeStarted()

If the behavior is active, moves the resize position to the specified point.

C#
public void Resize(Point point)
Parameters:pointPoint

The point in coordinates relative to the owning LayoutControlContainerElement.

Events

C#
public event EventHandler Resized
C#
public event EventHandler ResizeFinished
C#
public event EventHandler ResizeStarted