System.Classes.TInterfaceList.Capacity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Capacity: Integer read GetCapacity write SetCapacity;

C++

__property int Capacity = {read=GetCapacity, write=SetCapacity, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TInterfaceList

Description

Specifies the list capacity.

Use Capacity to determine the list capacity. Before adding many interfaces to the list, you can improve performance by setting Capacity to the final number of interfaces. This prevents the interface list from having to reallocate the list every time an interface is added.

See Also