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

TListItems.Count

The number of TListItem instances stored in the container.

Declaration

Source position: comctrls.pp line 1180

public property TListItems.Count : Integer
  read GetCount
  write SetCount;

Description

Count is an Integer property with the number of list items stored in the container. Its value is read from the Count property in the internal list used to store the list items. Setting a new value for the property is ignored; the property value is maintained as list items are added to or removed from the internal storage.

Count determines the upper limit for the positions in the indexed Item property. Index values must be in the range 0..Count-1 when Count has a non-zero value.

See also

TListItems.Item

  

Provides indexed access to the TListItem instance in the container by their ordinal position.

TListItems.AddItem

  

Adds the specified list item to the storage for the container.

TListItems.InsertItem

  

Inserts the specified list item at the specified position in the internal storage for the container.

TListItems.Delete

  

Removes the list item specified in AIndex from the container.


Version 3.2 Generated 2024-02-25 Home