Sign in Join
FPDoc Onlineexperiment

TCustomShellListView.AutoSizeColumns property

Member of TCustomShellListViewpublicIn unit ShellCtrls

Indicates if columns in the control are automatically resized to fill the client display area.

Declaration

pascal
property AutoSizeColumns: Boolean read FAutoSizeColumns write SetAutoSizeColumns default True;

Description

AutoSizeColumns is a Boolean property which indicates if the Columns for the control are automatically resized to fill the client display area for the control. When set to True, the widths for the Columns are adjusted so that they fill the client display area without the need for a horizontal scroll bar. The default value for the property is True.

Changing the value for the property to True causes the Resize method to be called.

The Resize method will be called at least once, even when AutoSizeColumns is set to False, if an explicit width has not been set for the first column in the control.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.