Vcl.StdCtrls.TCustomListBox.GetItemIndex
Delphi
function GetItemIndex: Integer; override;
C++
virtual int __fastcall GetItemIndex();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomListBox |
Description
Returns the value of the ItemIndex property.
GetItemIndex is the protected read implementation of the ItemIndex property. It returns the index of the first selected item 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.