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

# TTreeNode.Height

The height for the node including its text, images, and indicators.

## Declaration

Source position: comctrls.pp line 3159

`public property TTreeNode.Height : Integer read GetHeight write SetHeight;`

## Description

Height is an Integer property with the height for the node including its text, images, and indicators.

Height uses a default value if it contains 0 (zero) or a negative integer value. If an associated TreeView control has been assigned, the value in its DefaultItemHeight property is used as the property value. If TreeView in unassigned, the value in the DefaultTreeNodeHeight constant is used.

Setting a new value for the property causes the States property in the associated TreeView control to be updated (when assigned). The values tvsScrollbarChanged and tvsTopsNeedsUpdate are included in the control States. The Update method is called to redraw the TreeView. The Changed method is called with the ncHeightChanged node change reason.

Height is used along with Top to calculate the return value for the Bottom method. It is also used in the implementation of methods like DisplayRect and DisplayExpandSignRect.