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

# TTreeNode.DisplayTextLeft

Returns the position for the left edge of the text on the tree node.

## Declaration

Source position: comctrls.pp line 3103

`public function TTreeNode.DisplayTextLeft: Integer;`

## Function result

Horizontal coordinate where the Text for the tree node is located.

## Description

DisplayTextLeft is a method used to determine the horizontal coordinate where the Text for the tree node is displayed. If a TCustomTreeview instance has not been assigned in the tree node, the return value contains the result from the DisplayIconLeft method.

Values from the Images and GetImageSize in the TreeView control are used (when assigned) to adjust the left edge for the Text display area. If an image position has been assigned in ImageIndex or SelectedIndex, the left edge is increased by the image size and the default item spacing on the TreeView control.

DisplayTextLeft is used in TTreeNode methods like DisplayRect and DisplayTextRight. It is also used in TCustomTreeView methods including BeginEditing, GetHitTestInfoAt, and MouseDown.

## See also

TTreeNode.Text |  | Text displayed for the tree node.
TTreeNode.DisplayIconLeft |  | Returns the horizontal position for the left edge of the icon displayed for the tree node.
TTreeNode.ImageIndex |  | Ordinal position for the image displayed for the node, or -1 when no image is assigned.
TTreeNode.SelectedIndex |  | Ordinal position for the image displayed when the tree node is Selected.
TTreeNode.TreeView |  | The tree view control where the node is displayed.
TTreeNode.DisplayRect |  | Returns the rectangle where the tree node is displayed on its TreeView control.
TTreeNode.DisplayTextRight |  | Returns the horizontal position for the right edge of the Text on the tree node.
TCustomTreeView.Images |  | Image list which holds icons for the tree nodes in Items.
TCustomTreeView.GetImageSize |  | Gets a TSize instance with the dimensions for images in the control.
TCustomTreeView.BeginEditing |  | Prepares the control to edit the text for the specified tree node.
TCustomTreeView.GetHitTestInfoAt |  | Returns hit test results for the specified coordinates.
TCustomTreeView.MouseDown |  | Handles mouse down events for the tree view control.