[Overview][Types][Classes][Index] |
Provides indexed access to the storage used in the container.
Source position: stringhashlist.pas line 70
public property TStringHashList.List : PStringHashItemList |
List is a read-only indexed PStringHashItemList property which provides access to the storage used in the container. Resources in List are allocated and freed in methods like Add, Remove, Delete, and Clear.
The value is a Pointer to the first memory block allocated for the PHashStringItem instances stored in the container. The property values are accessed using the ordinal position for a given hash item.
Since the property value is a Pointer, it must be dereferenced to access the member values for a given hash item. For example:
// var AKey: Cardinal; // var AHashValue: String; // var AData: TObject; // var AHashes: TStringHashList; AKey := AHashes.List[2]^.Key; AHashValue := AHashes.List[2]^.HashValue; AData := AHashes.List[2]^.Data;
|
Pointer to a block of TStringHashItem instances. |
|
|
Pointer to a TStringHashItem instance. |
Version 4.0 | Generated 2025-05-03 | Home |