New to Telerik UI for WinForms? Start a free 30-day trial

Resizes a visible column while redistributing the remaining available width among later stretchable columns.

Definition

Constructors

Creates a stretch-resize behavior and initializes arrangement information for the owner's columns.

C#
public StrechColumnResizingBehavior(RadListViewElement owner)
Parameters:ownerRadListViewElement

The list-view element whose columns are resized.

Fields

Maps each column's hash code to its layout and resize information.

C#
protected Dictionary<int, StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo> arrangeInfos

Properties

Gets the available width most recently supplied to CalculateColumnWidths(SizeF).

C#
public float AvailableWidth { get; }
Property Value:

The available horizontal space for stretchable columns.

Gets the visible columns that participate in proportional width distribution.

C#
public List<StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo> StretchableColumns { get; }
Property Value:

The mutable arrangement records for the stretchable columns.

Gets the width budget assigned to the active stretch-resize operation.

C#
public float StretchableWidth { get; }

Methods

Prepares stretch-resize information for the specified column and records starting widths and proportions.

C#
public override bool BeginResize(ListViewDetailColumn column, Point mousePosition)
Parameters:columnListViewDetailColumn

The column to resize.

mousePositionPoint

The current mouse position used as the resize baseline.

Returns:

bool

true if the column is in the stretchable-column list; otherwise, false.

Overrides: BaseColumnResizingBehavior.BeginResize(ListViewDetailColumn, Point)

This method does not check the result of the base resize validation. It can return true while IsResizing remains false, or return false after the base method has initialized resize state.

Distributes the available width proportionally across visible stretchable columns and updates their offsets.

C#
public override void CalculateColumnWidths(SizeF availableSize)
Parameters:availableSizeSizeF

The size available to the Details view.

Overrides: BaseColumnResizingBehavior.CalculateColumnWidths(SizeF)

Ends the resize operation and clears temporary scale factors used during redistribution.

C#
public override void EndResize()

Overrides: BaseColumnResizingBehavior.EndResize()

Gets the arrange info.

C#
public virtual StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo GetArrangeInfo(ListViewDetailColumn column)
Parameters:columnListViewDetailColumn

The column.

Returns:

StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo

Creates and stores arrangement information for a column, adding visible columns to the resize lists.

C#
protected virtual StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo InitColumn(ListViewDetailColumn column)
Parameters:columnListViewDetailColumn

The column to initialize.

Returns:

StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo

The arrangement information created for the column.

Processes the columns collection.

C#
protected virtual float ProcessColumnsCollection()
Returns:

float

Clears the list of columns currently eligible for stretch resizing.

C#
protected void Reset()

Changes the active column's width and redistributes remaining space among following stretchable columns.

C#
public override bool Resize(int delta)
Parameters:deltaint

The signed width change requested by mouse movement.

Returns:

bool

false when no stretchable columns are available; otherwise, true when the resize request is handled, including when a width constraint prevents a change.

Overrides: BaseColumnResizingBehavior.Resize(int)