[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 3330

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

  

Items - the collection of TreeNodes that comprise the TreeView

GetNodeAtY

  

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