Show: Delphi
C++
Display Preferences
FMX.ListBox.TCustomListBox.ItemIndex
From XE2 API Documentation
Delphi
property ItemIndex: Integer read FItemIndex write SetItemIndex default -1;
C++
__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, default=-1};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | FMX.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | TCustomListBox |
Description
Specifies the index of the currently selected item.
Gets or sets the index of the item that is selected in the list box. The first item in the list has index 0, the second item has index 1, and so on. If no item is selected, the value of ItemIndex is -1.
To get the actual item that is selected, use the Selected property.