Resizes a visible column while redistributing the remaining available width among later stretchable columns.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class StrechColumnResizingBehavior : BaseColumnResizingBehavior
Inheritance: objectBaseColumnResizingBehaviorStrechColumnResizingBehavior
Inherited Members
Constructors
Creates a stretch-resize behavior and initializes arrangement information for the owner's columns.
public StrechColumnResizingBehavior(RadListViewElement owner)
The list-view element whose columns are resized.
Fields
Maps each column's hash code to its layout and resize information.
protected Dictionary<int, StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo> arrangeInfos
Properties
Gets the available width most recently supplied to CalculateColumnWidths(SizeF).
public float AvailableWidth { get; }
The available horizontal space for stretchable columns.
Gets the visible columns that participate in proportional width distribution.
public List<StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo> StretchableColumns { get; }
The mutable arrangement records for the stretchable columns.
Gets the width budget assigned to the active stretch-resize operation.
public float StretchableWidth { get; }
Methods
Prepares stretch-resize information for the specified column and records starting widths and proportions.
public override bool BeginResize(ListViewDetailColumn column, Point mousePosition)
The column to resize.
mousePositionPointThe current mouse position used as the resize baseline.
Returns:true if the column is in the stretchable-column list; otherwise, false.
Overrides:
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.
public override void CalculateColumnWidths(SizeF availableSize)
The size available to the Details view.
Overrides:
Ends the resize operation and clears temporary scale factors used during redistribution.
public override void EndResize()
Overrides:
Gets the arrange info.
public virtual StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo GetArrangeInfo(ListViewDetailColumn column)
The column.
Returns:StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo
Creates and stores arrangement information for a column, adding visible columns to the resize lists.
protected virtual StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo InitColumn(ListViewDetailColumn column)
The column to initialize.
Returns:StrechColumnResizingBehavior.ListViewTableViewCellArrangeInfo
The arrangement information created for the column.
Processes the columns collection.
Clears the list of columns currently eligible for stretch resizing.
protected void Reset()
Changes the active column's width and redistributes remaining space among following stretchable columns.