[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the tree node that is the first visible child node in the subtree.
Source position: comctrls.pp line 3106
public function TTreeNode.GetFirstVisibleChild( |
aEnabledOnly: Boolean = False |
):TTreeNode; |
aEnabledOnly |
|
True if the visible child node must also be Enabled. False if Enabled is not examined in the method. |
First matching visible child node for the current node, or Nil when there are no child nodes.
GetFirstVisibleChild is a TTreeNode function used to get the tree node that is the first visible child node in the subtree. The AEnabledOnly argument indicates whether the selected node must also be Enabled. If AEnabledOnly is False, the Enabled property is not examined.
GetFirstVisibleChild calls GetFirstChild to retrieve the first child node in Items. If the first child node is not visible, each of the TTreeNode instances in Items is examined after calling GetNextVisibleSibling.
The return value is the first TTreeNode instance with its Visible property set to True. The return value is Nil if no visible child node was found in Items.
Use GetLastVisibleChild to retrieve the last visible child node in Items.
Modified in LCL version 3.0. Refactored to include the AEnabledOnly argument.
|
Provides indexed access to the child nodes for the current node. |
|
|
True if the tree node is visible in the associated TreeView control. |
|
|
Controls whether the tree node can be selected, and its visual appearance. |
|
|
Gets the first child node in the Items property. |
|
|
Gets the next visible node at the same level in the node tree. |
|
|
Gets the last child node in the subtree with its Visible property set to True. |
|
|
Enumerated type denoting the state for a TreeNode. |
|
|
Set type used to store TNodeState value(s). |
Version 4.0 | Generated 2025-05-03 | Home |