Finds and returns the tree node where the Data property equals the Data parameter. The function searches all children of the Item parameter, all of their children, etc until the first match is found. If no match is found, the function returns nil.
Namespace: RSVclHelperFunctions
Delphi |
function FindTreeNode( const tv: TTreeView; Parent: TTreeNode; Data: TObject ): TTreeNode; overload; |
Parameters
tv
Type: TTreeView
Tree View to search
Parent
Type: TTreeNode
Top-level tree node to search
Data
Type: TObject
The Data to match
Type: TTreeNode
Reference•RSVclHelperFunctions|FindTreeNode(TTreeView,string,Boolean,TCompareStringsOption) •RSVclHelperFunctions|FindTreeNode(TTreeView,TTreeNode,string,Boolean,TCompareStringsOption) •RSVclHelperFunctions.FindTreeNode(TTreeView,TObject) •RSVclHelperFunctions.FindTextInTreeView(TCustomTreeView,String) •TCompareStringsOption |