TCustomListBox.Count property
The number of list items defined for the scrollable list box.
Declaration
property Count: Integer read GetCount write SetCount;Description
Count is an
Integer property which indicates the number
of
Items defined for the list box control. Count is provided for
Delphi compatibility, and redirects read access to the Count property in Items.
In previous LCL versions, Count was a read-only property. Starting with LCL version 5.0, it is writable and allows the number of items on the control to be specified when the control is used in "virtual mode" (Style = lbVirtual). Setting a new value for the property when Style has a value other than lbVirtual causes an exception to be raised.
Errors
Raises an exception when a new value is assigned to the property if Style is not set to lbVirtual.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
