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

TListColumn

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

Represents an individual column in a multi-column list control.

Declaration

Source position: comctrls.pp line 1200

type TListColumn = class(TCollectionItem)

protected

  procedure SetIndex(); override;

  

Sets the value for the Index property.

  function GetDisplayName; override;

  

Gets the value for the DisplayName property.

  function GetStoredWidth;

  

Gets the value for Width as included in LCL component streaming.

public

  constructor Create(); override;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  procedure Assign(); override;

  

Copies properties from the specified persistent object to the current class instance.

  property WidthType: TWidth; [r]

  

Not used in LCL.

published

  property Alignment: TAlignment; [rw]

  

Sets the horizontal alignment for the Caption text.

  property AutoSize: Boolean; [rw]

  

When other columns have fixed width, auto-calculate width of this column, to fill entire width.

  property Caption: TTranslateString; [rw]

  

Caption text for the column.

  property ImageIndex: TImageIndex; [rw]

  

Index of icon, inside ImageList object for columns of Listview.

  property MaxWidth: TWidth; [rw]

  

Maximal width for this column.

  property MinWidth: TWidth; [rw]

  

Minimal width for this column.

  property Tag: PtrInt; [rw]

  

Int value, to store some info for this column.

  property Visible: Boolean; [rw]

  

Allow to show this column.

  property Width: TWidth; [rw]

  

Current width of column. May be calculated auto, if AutoSize used.

  property SortIndicator: TSortIndicator; [rw]

  

Sort indicator for the column. Reflects the sort direction for the list view control where the column is used.

end;

Inheritance

TListColumn

  

Represents an individual column in a multi-column list control.

|

TCollectionItem

?

TObject

Description

TListColumn is a TCollectionItem descendant which represents an individual column in a multi-column list control.

TListColumn is the type used for items added to the TListColumns collection, and maintained in the TCustomListView.Columns property.

See also

TListColumns

  

TListColumns - a collection of Items of type TListColumn (the columns appearing in a multi-column list).

TCustomListView.Columns

  

Collection with the column definitions for the list view control (size, alignment, image index, etc.).

TCollectionItem

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