[Overview][Types][Classes][Index] |
Specifies the selected node in the tree view
Source position: fpg_tree.pas line 244
public property TfpgTreeView.Selection: TfpgTreeNode |
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.