klyn.gui.windows.TreeView.expandNode
method
public expandNode(node as TreeNode, expanded as Boolean = true) as Boolean
Description

Expands or collapses a node and refreshes the visible rows. Deferred children are prepared before opening a branch, for pointer, keyboard and programmatic expansion alike.

Parameters
ParameterDescription
nodeBranch to change.
expandedWhether to open it.
Returns

False for null, a leaf, or a rejected expansion.

Example
tree.expandNode(root.children[0], false)