System.Generics.Collections.TList.Count

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Count: Integer read FCount write SetCount;

C++

__property int Count = {read=FCount, write=SetCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TList

Description

Number of list elements.

Count gets or sets the actual number of elements in the list. Count is always less than or equal to Capacity.

If an operation, such as Insert, would increase Count to be greater than Capacity, the list is automatically resized and Capacity is increased.

If Count is reduced, then Count - Value items at the end of the list are removed.

See Also

Code Examples