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

# TListItem.ImageIndex

Ordinal position for the image displayed for the list item.

## Declaration

Source position: comctrls.pp line 1079

`public property TListItem.ImageIndex : TImageIndex read GetImageIndex write SetImageIndex default - 1;`

## Description

ImageIndex is a TImageIndex property with the position for the image displayed for the list item. It is the ordinal position in the LargeImages or SmallImages properties in the ListView for the item.

The default value for the property is -1, and indicates that an explicit value has not been assigned. ImageIndex can be assigned at design-time in the Lazarus Object Inspector, or at run-time. Changing the property value causes the ListView widgetset class to be updated when its handle has been assigned.

Use StateIndex to specify the position for the state image used on the list item.

## See also

TListItem.ListView |  | The ListView in which this Item is found.
TListItem.StateIndex |  | Ordinal position for the image used to represent the state for the list item.
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.SmallImages |  | Image list which contains "small" icons used for view styles.
TCustomListView.LargeImages |  | Image list which contains "big" icons displayed for view styles on the control.
TCustomListView.StateImages |  | Image list with the state images for the items on the control.