FMX.ListBox.TListBox.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ItemIndex;

C++

__property ItemIndex = {default=-1};

Properties

Type Visibility Source Unit Parent
property published
FMX.ListBox.pas
FMX.ListBox.hpp
FMX.ListBox TListBox

Description

Specifies the index of the currently selected item.

FMX.ListBox.TListBox.ItemIndex inherits from FMX.ListBox.TCustomListBox.ItemIndex. All content below this line refers to FMX.ListBox.TCustomListBox.ItemIndex.

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.

See Also