[Overview][Types][Classes][Index] Reference for unit 'ObjectLists' (#lazutils)

TObjectArray.Count

Number of item/object associations currently stored in the List.

Declaration

Source position: objectlists.pas line 82

public property TObjectArray.Count : Integer
  read FCount
  write SetCount;

Description

Count is an Integer property which indicates the number of item/object associations currently stored in the List. Changing the value in Count causes Capacity to be updated when Count exceeds the value in Capacity.

The value in Count is maintained in method which add or remove item/object associations in List, such as: Add, AddObject, Insert, InsertObject, Delete, Remove, Clear and Pack.

See also

TObjectArray.List

  

Provides access to the list which implements the storage for the item/object associations in the class instance.

TObjectArray.Capacity

  

Specifies the number of associations that can be stored in the List.

TObjectArray.Add

  

Adds the specified item to the storage for the class instance.

TObjectArray.AddObject

  

Adds the specified item and its associated object to the storage in the class instance.

TObjectArray.Insert

  

Inserts a new association at the specified position in List.

TObjectArray.InsertObject

  

Inserts an item/object association at the specified position in the List.

TObjectArray.Delete

  

Deletes an item/object association stored at the specified position in the List.

TObjectArray.Remove

  

Removes the association with the specified TItem class instance.

TObjectArray.Clear

  

Removes all item/object associations stored in the List.

TObjectArray.Pack

  

Removes all associations where the Item class instance is unassigned (contains Nil).


Version 4.0 Generated 2025-05-03 Home