New to Telerik UI for WinForms? Start 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

Creates a resize behavior for the specified layout container.

C#
public LayoutControlResizingBehavior(LayoutControlContainerElement owner)
Parameters:ownerLayoutControlContainerElement

The container whose layout tree is resized.

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.

Raises Resized after the active splitter moves.

C#
protected virtual void OnResized()

Raises ResizeFinished after an active resize ends and the current layout positions are recorded as the new original bounds.

C#
protected virtual void OnResizeFinished()

Raises ResizeStarted after a resize operation becomes active.

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

Occurs after the splitter position changes during an active resize.

C#
public event EventHandler Resized

Occurs after an active resize ends and the current layout bounds are recorded as the new original bounds.

C#
public event EventHandler ResizeFinished

Occurs when a resize operation successfully begins.

C#
public event EventHandler ResizeStarted