TTreeNode.IndexOfText function
Returns the ordinal position for the last child node containing the specified Text.
Declaration
function IndexOfText(const NodeText: string): IntegerFunction result
Ordinal position for the last child node containing the specified node Text, or -1 when not found in the child nodes.
Description
IndexOfText searches the child nodes in Items to locate a node with
the text specified in the NodeText argument. A case-sensitive comparison is
performed using the equality operator (=). The child nodes are searched in
reverse order, and the return value represent the last node in Items with the
specified value. The return value is -1 if a node is not found in Items with
the specified value.
IndexOfText is a convenience method; it is not used in the implementation of TTreeNode, TTreeNodes, or TCustomTreeView.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
