Sign in Join
FPDoc Onlineexperiment

TCustomListBox.SelectAll procedure

Member of TCustomListBoxpublicIn unit StdCtrls

Selects all items in the list (in ExtendedSelect mode).

Declaration

pascal
procedure SelectAll; virtual

Description

SelectAll is a procedure used to mark all of the values defined in the Items property as Selected. No actions are performed in the method when Items is empty (Count is 0). SelectAll calls the SelectRange method to select items at position 0 (zero) through Count-1 (inclusive).

Use Selected to change the selection state for an individual item when MultiSelect is enabled. Set ItemIndex to -1 to clear the current selection when MultiSelect is not used.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.