[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TViewStyle

Represents the view styles available for the items in a list view control.

## Declaration

Source position: comctrls.pp line 1287

`type TViewStyle = (`
`vsIcon,` |  | Displays a large icon and the caption for each list view item. The icon is centered above the caption text. List items are displayed from left to right, and wrap to a new row when space is not available at the right edge of the control.
`vsSmallIcon,` |  | Displays a small icon and caption text for each list view item. Caption text is aligned to the right-hand side of the icon. List items are displayed from left to right, and wrap to a new row when space is not available at the right edge of the control.
`vsList,` |  | Displays a small icon with caption text to its right-hand side. The list items are arranged in columns filled from top to bottom, and then left to right.

`vsReport`

Displays each list item as a series of columns with a small icon on the left-hand side of the row. The Caption text for the list item is displayed in the first column, with the text for subsequent columns coming from the Caption property in the SubItems in the list item. Each column has a header at the top of the list view control. List items are displayed from top to bottom on the control.

`);`

## Description

TViewStyle is an enumerated type with values representing the view styles available for the items in a List View control. TViewStyle is the type used for the ViewStyle property in TCustomListView.

## See also

TCustomListView.ViewStyle |  | Sets one of ListView layouts: List (simple column), Report (few columns with full width), Icon (big icons), Small Icon (small icons, 16x16).
TCustomListView.Columns |  | Collection with the column definitions for the list view control (size, alignment, image index, etc.).
TCustomListView.Column |  | Provides indexed access to the columns defined for the control.
TCustomListView.Items |  | Collection of list items displayed on the list view control.
TListItem.Caption |  | Caption - the name given to this item on the list.
TListItem.SubItems |  | Contains text displayed as additional columns on the list view control.