[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TTreeNodes.FindNodeWithTextPath

Finds a node with the text ancestry specified in TextPath.

Declaration

Source position: comctrls.pp line 3221

public function TTreeNodes.FindNodeWithTextPath(

  TextPath: string

):TTreeNode;

Arguments

TextPath

  

Delimited text values used to locate the tree node.

Function result

Tree nodes matching the specified text values.

Description

Returns the TTreeNode instance found which matches the text ancestry in TextPath, or Nil if a tree node is not found matching the specified values.

TextPath contains the delimited text values used to locate a tree node. The '/' (Slash) character is used as the delimiter between text values in TextPath. An initial slash character representing the root node is not needed or allowed. The search always starts at the top-level tree nodes in the container. The FindNode method is used to locate subsequent delimited text values in TextPath.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.