TCOM_List
What: class
Ancestor: TCommon_COM_Interface
File: _COMLists
Layer: 0
Platforms: C++, Javascript, Pascal (All), PHP, Python
This abstract base class is used to interface to a text editor. The methods which
start with underscores are non stdcall interfaces for property handlers and should
not be called directly by any code that uses the class. It has the following methods:
_Get_Capacity
int32 _Get_Capacity()
function _Get_Capacity : longint
Returns the current capacity (physical size).
_Get_Count
int32 _Get_Count()
function _Get_Count : longint
Returns the current count (logical size).
_Get_Delta
int32 _Get_Delta()
function _Get_Delta : longint
Returns the current list delta.
_Get_Item
int64 _Get_Item( int64 Index )
function _Get_Item( Index : int64 )
Returns the item at the specified index.
_Set_Capacity
void _Set_Capacity( int32 Value )
procedure _Set_Capacity( Value : longint )
sets the list's capacity (physiscal size).
_Set_Count
void _Set_Count( int32 Value )
procedure _Set_Count( Value : longint )
Sets the logical size of the list.
_Set_Delta
void _Set_Delta( int32 Value )
procedure _Set_Delta( Value : longint )
Sets the list's delta value. This is the number of items that are added to the capacity
whenever the list needs to be expanded. If negative, this is the percentage of the
current list size that the list is to be expanded.
_Set_Item
void _Set_Item( int64 Index, int64 Value )
procedure _Set_Item( Index, Value : int64 )
Set the value at the specified index to the specified value.
Add
int32 Add( int32 Value )
function Add( Value : longint ) : longint
Adds a value to the list and returns the index of the added item.
Capacity
int32 Capacity()
property Capacity : longint read _Get_Capacity write _Set_Capacity
Access to the capacity.
Count
int32 Count()
property Count : longint read _Get_Count write _Set_Count
Access to the count.
Delta
int32 Delta()
property Delta : longint read _Get_Delta write _Set_Delta
Access to the delta value.
Get_Capacity
int32 Get_Capacity()
function Get_Capacity : longint
Returns the capacity (physical size) of the list.
Get_Count
int32 Get_Count()
function Get_Count : longint
Returns the number of items in the list (logical size).
Get_Delta
int32 Get_Delta()
function Get_Delta : longint
Returns the delta value.
Get_Item
int32 Get_Item( int32 Index )
function Get_Item( Index : longint ) : longint
Returns the item at the specified index.
Items
int32 Items( int64 Index )
property Items[ Index : int64 ] : int64 read _Get_Item write _Set_Item ; default
Access to the item at the specified index.
Set_Capacity
void Set_Capacity( int32 Value )
procedure Set_Capacity( Value : longint )
Sets the physical size of the list. The count is not altered unless the capacity is
set to a value less than the current count.
Set_Count
void Set_Count( int32 Value )
procedure Set_Count( Value : longint )
Sets the number of items in the list, truncating or expanding the list as necessary.
Set_Delta
void Set_Delta( int32 Value )
procedure Set_Delta( Value : longint )
Sets the delta value. This is the number of items that are added to the capacity
whenever the list needs to be expanded. If negative, this is the percentage of the
current list size that the list is to be expanded.
Set_Item
void Set_Item( int32 Index, int32 Value )
procedure Set_Item( Index, Value : longint )
Sets the specified index to the specified value.