[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ShellCtrls' (#lcl)

# TCustomShellListView.AutoSizeColumns

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

## Declaration

Source position: shellctrls.pas line 296

`public property TCustomShellListView.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.

Remark: | 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

TCustomListView.Columns |  | Collection with the column definitions for the list view control (size, alignment, image index, etc.).
TListColumn |  | Represents an individual column in a multi-column list control.