API:System.Contnrs.TObjectBucketList.Add
Delphi
function Add(AItem, AData: TObject): TObject;
C++
HIDESBASE System::TObject* __fastcall Add(System::TObject* AItem, System::TObject* AData);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TObjectBucketList |
Description
Inserts an item and its associated data into the bucket list.
System.Contnrs.TObjectBucketList.Add inherits from System.Contnrs.TCustomBucketList.Add. All content below this line refers to System.Contnrs.TCustomBucketList.Add.
Inserts an item and its associated data into the bucket list.
Call Add to add an item and its associated data into the bucket list. Add locates the bucket into which the specified item belongs. If the item is already in the bucket, Add raises an EListError exception. Otherwise, it adds the item to the correct bucket and returns AData.