Sign in Join
FPDoc Onlineexperiment

TTreeNode.Height property

Member of TTreeNodepublicIn unit ComCtrls

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

Declaration

pascal
property 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.