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

# TDisplayCode

TDisplayCode - enumerated type denoting how items are displayed.

## Declaration

Source position: comctrls.pp line 987

`type TDisplayCode = (`
`drBounds,` |  | List item is rendered using the Bounds for the item display rectangle.
`drIcon,` |  | List item is rendered using the width and height for the associated image.
`drLabel,` |  | List item is rendered using the text metrics for the caption in the item.
`drSelectBounds` |  | List item is rendered using the selection rectangle for the item.
`);`

## Description

TDisplayCode is an enumerated type with values that denote how the item or sub-item is displayed in a list view control. The values are passed as arguments to the DisplayRect and DisplayRectSubItem methods in TListItem, and allows the widgetset to layout and rendering the list items for the platform.

## See also

TListItem.DisplayRect |  | Gets the display rectangle for the specified region of the list item on its list view control.
TListItem.DisplayRectSubItem |  | Gets the display rectangle coordinates for a region in the specified sub-item on its list view control.