RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.FindCaption Method

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

Pascal
function FindCaption(StartIndex: Integer; Value: string; Partial: Boolean; Inclusive: Boolean; Wrap: Boolean): TListItem;
C++
__fastcall TListItem FindCaption(int StartIndex, AnsiString Value, Boolean Partial, Boolean Inclusive, Boolean Wrap);

Call FindCaption to search for a list view item labeled by the string specified as 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. FindCaption returns the first item with the Caption property equal to Value. If the Partial parameter is true, a Caption matches if it starts with the substring Value. If Partial is false, the Caption must match Value exactly. If no item is found, FindCaption returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!