Finds and returns the tree node where the Caption property equals the Text parameter. The function searches all children of the tree until the first match is found. If no match is found, the function returns nil.
Namespace: RSVclHelperFunctions
Delphi |
function FindTreeNode( const tv: TTreeView; const Text: String; |
Parameters
tv
Type: TTreeView
Tree View to search
Text
Type: String
Caption to find
CaseSensitive
Type: Boolean
Case-sensitive comparison (true) or not (false)
Option
Type: TCompareStringsOption
Type of comparison
Type: TTreeNode
Reference•RSVclHelperFunctions.FindTreeNode(TTreeView,TObject) •RSVclHelperFunctions|FindTreeNode(TTreeView,TTreeNode,string,Boolean,TCompareStringsOption) •RSVclHelperFunctions.FindTreeNode(TTreeView,TTreeNode,TObject) •RSVclHelperFunctions.FindTextInTreeView(TCustomTreeView,String) •TCompareStringsOption |