System.Contnrs.TObjectBucketList.Data
Delphi
property Data[AItem: TObject]: TObject read GetData write SetData; default;
C++
__property System::TObject* Data[System::TObject* AItem] = {read=GetData, write=SetData/*, default*/};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TObjectBucketList |
Description
Represents the data associated with a specified item in the object bucket list.
Use Data to get or set the data object associated with an item in the bucket list.
AItem is the identifier of an item currently in the object bucket list. If AItem does not specify an item in one of the buckets of the bucket list, trying to read or set Data causes TObjectBucketList to raise an EListError exception.
Note: In Delphi, Data is the default property of TObjectBucketList. This means that the property name can be omitted when using this property. Thus, for example, instead of
ObjectBucketList1.Data[MyObject];
you can write
ObjectBucketList1[MyObject];