System.Contnrs.TCustomBucketList.AddItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddItem(ABucket: Integer; AItem, AData: Pointer): Pointer; virtual;

C++

virtual void * __fastcall AddItem(int ABucket, void * AItem, void * AData);

Properties

Type Visibility Source Unit Parent
function protected
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TCustomBucketList

Description

Inserts an item and its associated data into a specified bucket.

TCustomBucketList uses AddItem internally to add items into buckets. AddItem does not check whether the specified item correctly belongs in the specified bucket; it simply handles the mechanics of adding the item into the bucket. If you need to determine the bucket in which an item belongs, use the Add method instead.

ABucket is the index of the bucket in which the item belongs.

AItem is the item to add to ABucket.

AData is the data to associate with AItem.

AddItem returns the value of AData.

See Also