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

# TListColumns

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

A collection for TListColumn instances defined for a multi-column list view control.

## Declaration

Source position: comctrls.pp line 1262

`type TListColumns = class(TCollection)`
`protected`
`function GetOwner; override;` |  | Gets the owner of the persistent object.
`public`
`constructor Create();` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`procedure Update(); override;` |  | Checks whether the collection update is actually need and calls the inherited method.
`function Add;` |  | Creates and returns a new TListColumn instance for the collection.
`property Owner: TCustomListView; [r]` |  | Owner of the collection instance.
`property Items []: TListColumn; default; [rw]` |  | Provides indexed access to the items in the column collection.
`procedure Assign(); override;` |  | Adds column definitions in Source to the current class instance.
`end;`

## Inheritance

`TListColumns` |  | A collection for TListColumn instances defined for a multi-column list view control.
`TCollection`
?
`TObject`

## Description

TListColumns is a TCollection descendant which implements a container for column definitions on a list view control. It provides properties and methods used to create, access, and maintain the TListColumn instances in its Items property.

Use methods like Add, Insert, Clear, Delete, and Move to maintain the column definitions in the collection.

TListColumns is the type used to implement the Columns property in TCustomListView.

## See also

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