[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomComboBox.ItemIndex

The index of the currently selected item, -1 if none is selected.

Declaration

Source position: stdctrls.pp line 400

public property TCustomComboBox.ItemIndex : Integer
  read GetItemIndex
  write SetItemIndex
  default -1;

Description

Setting the ItemIndex selects the item in the list.

The first list item has index 0, up to ListCount-1.

If no item is selected, ItemIndex is -1.

See also

TCustomComboBox

  

The base class for ComboBox components.

TCustomComboBox.Items

  

The list of all items in the control.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.