Show: Delphi C++
Display Preferences

System.Generics.Collections.TList.Count

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Count: Integer read FListHelper.FCount write SetCount;

C++

__property int Count = {read=FListHelper.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


Personal tools
In Other Languages
Previous Versions
Assistance