From RAD Studio API Documentation
Jump to: navigation, search


function FindData(StartIndex: Integer; Value: TCustomData;  Inclusive, Wrap: Boolean): TListItem;


TListItem* __fastcall FindData(int StartIndex, void * Value, bool Inclusive, bool Wrap);


Type Visibility Source Unit Parent
function public
Vcl.ComCtrls TCustomListView


Returns a list view item, if any, associated with the specified data.

Call FindData to locate a list view item with its Data property equal to the Value parameter. If the Inclusive parameter is true, the list item specified by StartIndex is the first item checked. Otherwise, the search starts on the next item. If the Wrap parameter is true, the search continues at the top of the list if a match has not been found before reaching the bottom. FindData returns the first item with a Data property equal to the Value parameter. If no item is found, FindData returns nil (Delphi) or NULL (C++).

See Also