TListColumn.Width property
Width for the column on a list view control.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
