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

TObjectArray.Shrink

Decreases the Capacity and allocated storage for the class instance.

Declaration

Source position: objectlists.pas line 64

protected procedure TObjectArray.Shrink;

Description

Shrink is a procedure used to decrease the Capacity (and subsequently) the allocated storage for the class instance. Shrink always halves the value in the Capacity property. It is called from the Delete method when Capacity has at least four (4) times the number of associations in the Count property.

See also

TObjectArray.Delete

  

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

TObjectArray.Capacity

  

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

TObjectArray.SetCapacity

  

Sets the value for the Capacity property.

TObjectArray.Count

  

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


Version 4.0 Generated 2025-05-03 Home