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

# TListColumn

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TListColumn - an individual column in a multi-column List control

## Declaration

Source position: comctrls.pp line 780

`type TListColumn = class(TCollectionItem)`
`protected`
`procedure SetIndex(); override;` |  | SetIndex - calls inherited method, and if this is a new index value, changes to the new column index
`function GetDisplayName; override;` |  | GetDisplayName returns the Caption; if this is blank, calls inherited method
`public`
`constructor Create(); override;` |  | Create - constructor for TListColumn: calls inherited Create then sets defaults for size, alignment and index
`destructor Destroy; override;` |  | Destroy - destructor for TListColumn: if update allowed, updates columns then calls inherited Destroy
`procedure Assign(); override;` |  | Assign - if source is of correct type, copies alignment, caption, visibility and size properties, otherwise calls inherited Assign which probably raises an exception
`published`
`property Alignment: TAlignment; [rw]` |  | Alignment - whether text is to be left or right justified or centered
`property AutoSize: Boolean; [rw]` |  | Whether AutoSize is to be operational
`property Caption: TTranslateString; [rw]` |  | A text string or Caption (which may be translated) to be used at the top of the column
`property ImageIndex: TImageIndex; [rw]` |  | ImageIndex - the index value of the image associated with he ListColumn
`property MaxWidth: TWidth; [rw]` |  | MaxWidth - the maximum width for this column
`property MinWidth: TWidth; [rw]` |  | MinWidth - the minimum permissable with for the column
`property Tag: Integer; [rw]` |  | Tag - a general purpose integer variable to be used in association with this column
`property Visible: Boolean; [rw]` |  | Visible - whether this column can be seen
`property Width: TWidth; [rw]` |  | The Width of this column
`end;`

## Inheritance

`TListColumn` |  | TListColumn - an individual column in a multi-column List control
`TCollectionItem`
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.