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

# TCustomListView.CreateListItems

Creates a new TListItems instance used in the Items property.

## Declaration

Source position: comctrls.pp line 1528

`protected function TCustomListView.CreateListItems: TListItems; virtual;`

## Function result

TListItems instance created in the method.

## Description

CreateListItems allocates the container used for the Items property when OwnerData is set to False. It creates and returns a new TListItems instance using the list view control as the Owner of the items in the container. A TOwnerDataListItems instance is allocated for use in Items when OwnerData is changed to True.

## See also

TCustomListView.Items |  | Collection of list items displayed on the list view control.
TCustomListView.OwnerData |  | Enables or disables owner data (virtual) mode for the list view control.
TListItems |  | Implements a container for list items on a list view control.
TOwnerDataListItems |  | Container for the items in a list view control when owner data (virtual) mode is enabled.