Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomListBox.Columns

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Columns: Integer read FColumns write SetColumns default 0;

C++

__property int Columns = {read=FColumns, write=SetColumns, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Specifies the number of columns, in a multi-column list box, that are visible without having to scroll.

Use Columns to specify the number of columns, in a multi-column list box, that are visible without having to use the horizontal scroll bar.

Multi-column list boxes have a horizontal scroll bar that allows users to view multiple columns as they wrap. The default value for Columns is 0, meaning that the list box is not multi-column. That is, users can scroll only vertically and the list of items will not wrap.

For Columns values greater than 0, multiple columns accommodate the items as they wrap beyond the bottom of the list box. The Columns property specifies the number of columns that are visible without having to horizontally scroll the list box.

The width of each column depends upon both the Width property and the number of Columns.

Tip: To add data to specific columns, you need to use the ^I parameter, as shown in Items.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance