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

TCustomListBox.SelectAll

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

Declaration

Source position: stdctrls.pp line 628

public procedure TCustomListBox.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

TCustomListBox.ExtendedSelect

  

True when a contiguous range of items can be selected using Shift+Click. The default value is True.

TCustomListBox.SelectRange

  

Changes the selection state for a range of Items in the control.

TCustomListBox.Count

  

The number of items defined in the scrollable list box.

TCustomListBox.Selected

  

The Selected state for an item in the control.

TCustomListBox.MultiSelect

  

Allows selection of more than one item from the list.

TCustomListBox.ItemIndex

  

Ordinal position for the currently selected item, -1 if none.


Version 4.0 Generated 2025-05-03 Home