Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#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: string; [rw]

  

Caption text for the column.

  property ImageIndex: Integer; [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]

  

Indicates whether the column is visible on the associated list view control.

  property Width: TWidth; [rw]

  

Width for the column on a list view control.

  property SortIndicator: TSortIndicator; [rw]

  

Specifies the sort indicator displayed for the column.

end;

Inheritance

TListColumn

  

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

|

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

  

TCustomListView.Columns

  

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

TCollectionItem