Vcl.ComCtrls.TCustomListView.Columns

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Columns: TListColumns read FListColumns write SetListColumns;

C++

__property TListColumns* Columns = {read=FListColumns, write=SetListColumns};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Describes the properties of the columns in the list view.

Use Columns to add or delete columns in the list view, or to edit their display properties. When setting Columns at design time a ListView Columns Editor dialog appears. This dialog allows columns to be added or deleted, and the display properties of individual columns to be changed. At runtime, use the Caption, Alignment, and Width properties of the TListColumn objects accessed by the Columns property to change the appearance of the column headers.

Note: To display the columns, set the ViewStyle property to vsReport and the ShowColumnHeaders property to true.

See Also

Code Examples