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

# TListControlItems

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Container for the items added to a list control.

## Declaration

Source position: comboex.pas line 93

`type TListControlItems = class(TOwnedCollection)`
`protected`
`function CompareItems(); virtual;` |  | Implements a comparison function for items in the collection.
`function DoCustomSort();` |  | Performs the comparison for the CustomSort method.
`function DoOnCompare();` |  | Signals the OnCompare event handler to compare items in the collection.
`procedure Update(); override;` |  | Performs a notification when an item in the collection has been changed.
`public`
`function Add;` |  | Adds a new item to the collection.
`procedure CustomSort();` |  | Performs a custom sort using the specified routine.
`procedure Sort;` |  | Performs the Sort routine required for the setting in SortType.
`property Items []: TListControlItem; default; [r]` |  | Provides indexed access to the list of items maintained in the collection.
`published`
`property CaseSensitive: Boolean; [rw]` |  | Indicates if case sensitivity is used when comparing items in the collection.
`property SortType: TListItemsSortType; [rw]` |  | Determines the comparison mechanism used for collection items in the Sort method.
`property OnCompare: TListCompareEvent; [rw]` |  | Event handler signalled to sort the collection using the data in the collection items.
`end;`

## Inheritance

`TListControlItems` |  | Container for the items added to a list control.
`TOwnedCollection`
?
`TObject`

## Description

TListControlItems is a TOwnedCollection descendant which implements a container for items added to a list control. TListControlItems extends the ancestor class to provides case sensitivity when comparing Items in the collection, sort types, and custom sorting using an event handler.

TListControlItems is the ancestor for the TComboExItems collection class.

## See also

TComboExItems |  | Implements a collection for the items added to TCustomComboBoxEx.
TOwnedCollection