Sign in Join
FPDoc Onlineexperiment

TTreeNode.Top property

Member of TTreeNodepublicIn unit ComCtrls

Vertical coordinate for the top of the tree node.

Declaration

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

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