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

# TTreeNode.Top

Vertical coordinate for the top of the tree node.

## Declaration

Source position: comctrls.pp line 3177

`public property TTreeNode.Top : Integer read GetTop;`

## Description

Top is a read-only Integer property with the vertical coordinate for the top of the tree node. Top contains an Y-axis offset where the tree node is located in the display area for the associated TreeView control.

The property value is calculated by calling the UpdateAllTops method in the TreeView control. The value contains the accumulated Height for all preceding TreeNodes starting at the first visible node in the control, and reflects their Visible and Expanded settings. The value is calculated in UpdateAllTops when tvsTopsNeedsUpdate has been included in the States property for the TreeView control.

Use Height to get height for the text, images, and indicators used in a tree node. Use Bottom to get the vertical coordinate for the bottom of the tree node.

## See also

TTreeNode.Height |  | The height for the node including its text, images, and indicators.
TTreeNode.Bottom |  | Gets the vertical coordinate for the bottom of the tree node.