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

TCustomListBox.ItemIndex

ItemIndex: Integer to indicate the currently selected item (zero origin)

Declaration

Source position: stdctrls.pp line 576

public property TCustomListBox.ItemIndex: Integer
  read GetItemIndex
  write SetItemIndex;

Description

Indicates the currently selected item. The first item has number 0, the second has number 1, the third number 2, etc. In case no item is selected, ItemIndex has value -1. If MultiSelect is True, ItemIndex represents the item which has focus, which typically has a different color from the other items.

See also

TCustomListBox

  

TCustomList Box : the base class for TListBox

TCustomListBox.Items

  

Items - an array of strings representing the list of entries

TCustomListBox.MultiSelect

  

MultiSelect - allows more than one Item from the list to be selected at a time, by pressing the CTRL or SHIFT key while selecting

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