Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomListBox.GetItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance