RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.FindData Method

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

Pascal
function FindData(StartIndex: Integer; Value: TCustomData; Inclusive: Boolean; Wrap: Boolean): TListItem;
C++
__fastcall TListItem FindData(int StartIndex, TCustomData Value, Boolean Inclusive, Boolean Wrap);

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++). 

 

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