treeview FindNode method
Return to Introduction  Previous page  Next page
Applies to
acTreeView and acTreeComboBox components.  

function FindNode(const Text: String; IgnoreCase: Boolean = False;  
  WholeText: Boolean = True): TTreeNode;  

The FindNode method search the tree node with the text specified in Text parameter.  
The IgnoreCase parameter specified whether the search should be case sensitive.  
The WholeText parameter specified whether it should find the node where the length of caption is the same as length of Text parameter (if WholeText is False, the method will try to find the node which caption begins with the text specified in Text parameter).  
Function returns the pointer to tree node if it successfully found, or NIL (NULL) otherwise (if the node with specified Text not exists in the tree view).  

See also
FindAbsoluteIndexByNode methods.