Sign in Join
FPDoc Onlineexperiment

TTreeNode.Text property

Member of TTreeNodepublicIn unit ComCtrls

Text displayed for the tree node.

Declaration

pascal
property Text: string read FText write SetText;

Description

Text is a String property which contains the text displayed as the caption for the tree node.

Changing the value in the property causes the TreeView control to be updated. Its States property is modified to include the value tvsMaxRightNeedsUpdate, which causes the node sizes to be recalculated and the control to be re-displayed.

If the SortType for the TreeView is set to stText or stBoth, the Parent node is re-sorted. If the TreeView has not been assigned, the TreeNodes container is re-sorted.

The Changed method is called with the ncTextChanged node change reason.

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