[Overview][Types][Classes][Index] Reference for unit 'fpg_tree' (#fpgui)

TfpgTreeView.Selection

Specifies the selected node in the tree view

Declaration

Source position: fpg_tree.pas line 244

public property TfpgTreeView.Selection: TfpgTreeNode
  read FSelection
  write SetSelection;

Description

Specifies the selected node in the tree view. Read Selection to access the selected node of the tree view. If there is no selected node, the value returned is nil.

Set Selection to set the node in the tree view. If the new node is a child of a collapsed node, the tree view will automatically expand the nodes and scroll the new selected node into view. As the parent nodes are expanded, so the tree view will trigger the OnExpand event as well.


Documentation generated on: 2013-04-29