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

TCustomListBox.ItemIndex

The currently selected item, -1 if none.

Declaration

Source position: stdctrls.pp line 576

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

Description

If MultiSelect is True, ItemIndex represents the selected item which also has the focus.

See also

TCustomListBox

  

The base class for TListBox.

TCustomListBox.Items

  

The list of all items in the control.

TCustomListBox.MultiSelect

  

Allows to select more than one Item from the list, using CTRL-click.

TCustomListBox.ExtendedSelect

  

True when a contiguous range of items can be selected by a SHIFT-click. Default True.