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

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.

  function Add;

  

Creates and returns a new TListColumn instance for the collection.

  procedure Assign(); override;

  

Adds column definitions in Source to the current class instance.

  procedure Update(); override;

  

Checks whether the collection update is actually need and calls the inherited method.

  property Owner: TCustomListView; [r]

  

Owner of the collection instance.

  property Items []: TListColumn; default; [rw]

  

Provides indexed access to the items in the column collection.

end;

Inheritance

TListColumns

  

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

|

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.).



CT Web help

CodeTyphon Studio