[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 1205

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 text displayed in the column.

  property AutoSize: Boolean; [rw]

  

Resizes the column to the width needed for the list view Items or SubItems displayed in the column.

  property Caption: TTranslateString; [rw]

  

Caption text (heading) for the column.

  property ImageIndex: TImageIndex; [rw]

  

Ordinal position for the image displayed for the column.

  property MaxWidth: TWidth; [rw]

  

Maximum width for the column in pixels.

  property MinWidth: TWidth; [rw]

  

Minimum width for the column in pixels.

  property Tag: PtrInt; [rw]

  

Arbitrary Integer value with information about the column.

  property Visible: Boolean; [rw]

  

Indicates whether the column is visible on its 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.

|

TCollectionItem

|

TPersistent,IFPObserved

|

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

  

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

TCustomListView.Columns

  

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

TCollectionItem


Version 3.2 Generated 2024-02-25 Home