System.Contnrs.TCustomBucketList.FindItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindItem(AItem: Pointer; out ABucket, AIndex: Integer): Boolean; virtual;

C++

virtual bool __fastcall FindItem(void * AItem, /* out */ int &ABucket, /* out */ int &AIndex);

Properties

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

Description

Returns the location of an item in the bucket list.

TCustomBucketList uses FindItem internally to locate items in the bucket list.

AItem is the item to find in the bucket list.

ABucket returns the index of the bucket that contains the item.

AIndex returns the index of the item in the bucket specified by ABucket.

FindItem returns true if AItem is in the bucket list, false otherwise.

See Also