RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObjectBucketList.Data Property

Represents the data associated with a specified item in the object bucket list.

Pascal
property Data [AItem: TObject]: TObject;
C++
__property TObject * Data[TObject * AItem];

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
Note: ObjectBucketList1.Data[MyObject];
Note: you can write
Note: ObjectBucketList1[MyObject];
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!