TreeView Xojo plugin

TreeView.GetNodeParent Method

Gets a parent node from a given node.

GetNodeParent(
   childNode as TreeViewNode) as TreeViewNode

Parameters

childNode
The node to get the parent node from.

Returns

TreeViewNode
Returns the parent node as a TreeViewNode

Remarks

This function can only be used on nodes that live in the same instance of the TreeView as you are working on. This means that when sending in a node that has not been put in a TreeView or node that belongs to some other tree view then nil will be returned.

See Also

TreeView Control