Vcl.ComCtrls.TCustomListView.FindData
Delphi
function FindData(StartIndex: Integer; Value: TCustomData; Inclusive, Wrap: Boolean): TListItem;
C++
TListItem* __fastcall FindData(int StartIndex, void * Value, bool Inclusive, bool Wrap);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
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++).