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

TListColumn.Width

Width for the column on a list view control.

Declaration

Source position: comctrls.pp line 1254

published property TListColumn.Width : TWidth
  read GetWidth
  write SetWidth
  default 50;

Description

Width is an Integer property with the width for the column on a list view control. Width is used along with MaxWidth and MinWidth to control the amount of space needed or available for the column.

The property value is read from and written to the widgetset class instance when its handle is allocated.

The default value for the property is 50 (pixels). If the property is changed, the value is normalized to the range indicated by MinWidth and MaxWidth (when assigned). Default values are not assigned for the MinWidth and MaxWidth properties. The collection which owns the column instance is updated, and the list view and any observers are notified when the column is modified.

Set AutoSize to True to automatically resize the column to its content and the available space on the associated list view control. Values in MinWidth, MaxWidth, and Width are ignored when AutoSize is enabled.

See also

TListColumn.AutoSize

  

Resizes the column to the width needed for the list view Items or SubItems displayed in the column.

TListColumn.MaxWidth

  

Maximum width for the column in pixels.

TListColumn.MinWidth

  

Minimum width for the column in pixels.


Version 4.0 Generated 2025-05-03 Home