FMX.ListBox.TCustomListBox.ItemIndex

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property ItemIndex: Integer read GetItemIndex write SetItemIndex default -1;

C++

__property int ItemIndex = {read=GetItemIndex, 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.

See Also