Vcl.StdCtrls.TCustomCombo.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 TCustomCombo

Description

Returns the value of the ItemIndex property.

GetItemIndex is the read implementation of the ItemIndex property. It returns the index of the selected item in the drop-down list. 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