FMX.ExtCtrls.TPopupBox.ItemIndex
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.