Finds and returns the tree node where the Data property equals the Data 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; Data: TObject ): TTreeNode; overload; |
Parameters
tv
Type: TTreeView
Tree View to search
Data
Type: TObject
The Data to search for
Type: TTreeNode
Reference•RSVclHelperFunctions|FindTreeNode(TTreeView,string,Boolean,TCompareStringsOption) •RSVclHelperFunctions|FindTreeNode(TTreeView,TTreeNode,string,Boolean,TCompareStringsOption) •RSVclHelperFunctions.FindTreeNode(TTreeView,TTreeNode,TObject) •RSVclHelperFunctions.FindTextInTreeView(TCustomTreeView,String) |