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

TCustomListView.Column

Provides indexed access to the columns defined for the control.

Declaration

Source position: comctrls.pp line 1636

public property TCustomListView.Column[AIndex: Integer] : TListColumn
  read GetColumnFromIndex;

Description

Column is an indexed read-only TListColumn property which provides access to the information for a given column by its position. The column whose information is to be retrieved is determined by an index (AIndex). As with nearly all indexes, this index is 0 based.

Use the Columns property to add, change or delete a column definition.

Use the Items property to access the TListItem instances with the data displayed using the column definitions. The Caption in a given list item is the value display in Column[0]. Subsequent column values use the values in SubItems; i. e. Column[1] is SubItem[0], etc.

See also

TCustomListView.Columns

  

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

TCustomListView.Items

  

Collection of list items displayed on the list view control.

TListColumns

  

TListColumn

  

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

TListItems

  

TListItems - a list of items with a cache of the last accessed item.

TListItem

  

Represents the items created in TCustomListView and descendants.