Show: Delphi C++
Display Preferences

FMX.ExtCtrls.TPopupBox.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

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 published
FMX.ExtCtrls.pas
FMX.ExtCtrls.hpp
FMX.ExtCtrls TPopupBox

Description

Specifies the index of the selected item.

Read ItemIndex to determine which item is selected. The ItemIndex numbering starts with 0. If no item is selected, the value of ItemIndex is -1.

Set ItemIndex programmatically to select an item by passing in the index value. Modifying the ItemIndex value also affects the Text value. The Text value will be the string from the Items list that has the index equal to ItemIndex.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance