TShellListView.Columns property
Collection with the column definitions for the list view control (size, alignment, image index, etc.).
Declaration
property Columns: stored IsColumnsStored;Description
Columns is a TListColumns property which contains the column definitions for the list view control. The TListItem instances in the collection contain information about the caption for the column header, column width, image, and sort indicator value. Assigning a new collection to the property causes the designer for the parent form to be updated at design-time.
Column is significant when the ViewStyle for the control is set to vsReport. Report view is the only style where the columns are used or displayed. Set the value in ShowColumnHeaders to True to display the column header defined in the collection.
Columns are used at run-time to handle column click notifications and changes to the sort indicator. Use AutoSort, AutoSortIndicator, SortColumn, SortType, and SortDirection to access or maintain values for items in the collection.
The Count property in Columns also provides the value for the ColumnCount property in the list view control.
Use the indexed Column property to access a column definition by its ordinal position in the Columns collection.
This description is the one of ComCtrls.TCustomListView.Columns.
See also
- ViewStyle
- ColumnCount
- Column
- SortColumn
- AutoSort
- AutoSortIndicator
- AutoWidthLastColumn
- TListColumns
- TListColumn
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
