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

TCustomListBox.SelCount

The number of selected items in the list.

Declaration

Source position: stdctrls.pp line 677

public property TCustomListBox.SelCount : Integer
  read GetSelCount;

Description

SelCount is a read-only Integer property which contains the number of Items selected in the list box control. The return value is the result returned by the GetSelCount method in the widgetset class, or 0 (zero) when a handle has not been allocated for the control. SelCount is significant when the MultiSelect property is enabled.

Use Selected to read or write the selected state for a single value defined in the Items for the control.

Use SelectRange to set the selected state for Items in a specified range of positions.

Use SelectAll to select all Items in the control.

Use ClearSelection to remove all item selections in the control.

See also

TCustomListBox.Selected

  

The Selected state for an item in the control.

TCustomListBox.SelectRange

  

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

TCustomListBox.SelectAll

  

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

TCustomListBox.ClearSelection

  

Unselects all items in the control.

TCustomListBox.MultiSelect

  

Allows selection of more than one item from the list.

TCustomListBox.ExtendedSelect

  

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