Skip to main content

TcxCustomTreeView.FindNextToSelect Method

Returns the next selectable node.

Declaration

function FindNextToSelect: TTreeNode; virtual;

Returns

Type
TTreeNode

Remarks

Starting with the node specified by the Selected property, the FindNextToSelect method searches for a deselected node, with preference given to subsequent siblings. If the node returned by the Selected property and all its siblings are selected, the search proceeds to the parent node and its siblings, and so on up the tree. If the top level is reached without finding a deselected node, nil is returned.

Note that the Selected property can refer to a deselected node when MultiSelect is True. In this instance, the FindNextToSelect method returns that node.

See Also