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

TCustomTreeView.TopItem

TopItem - the first visible node of the tree

Declaration

Source position: comctrls.pp line 3606

public property TCustomTreeView.TopItem : TTreeNode
  read GetTopItem
  write SetTopItem;

Description

Use TopItem to get the topmost visible node. It is usually needed when tree view contains many nodes and scroll bar is requred to display them all. If you need the first node of the tree regardless of visibility use Items[0]

See also

Items

  

Collection of tree-items which is the content of control. Has type TTreeNodes.

GetNodeAtY

  

GetNodeAtY - returns the node at the specified (absolute) Y coordinate

The latest version of this document can be found at lazarus-ccr.sourceforge.net.