klyn.gui.windows.TreeView.selectNode
method
public selectNode(node as TreeNode) as Boolean
Description

Selects a visible node and scrolls vertically to reveal it.

Parameters
ParameterDescription
nodeNode to select; null clears the selection.
Returns

True if selected, false if it is absent from the visible rows. Hidden ancestors must be expanded first. Emits selectionChanged only when the selected node changes.

Example
tree.expandNode(root)
tree.selectNode(root.children[0])