Retrieves the parent node for a given tree node.

Namespace: TreeLayoutHelper
Assembly: TreeLayoutHelper (in TreeLayoutHelper.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
TNode GetParent(
	TNode node
)
Visual Basic
Function GetParent ( _
	node As TNode _
) As TNode
Visual C++
TNode GetParent(
	TNode node
)
J#
TNode GetParent(
	TNode node
)
JScript
function GetParent(
	node : TNode
) : TNode
JavaScript
function GetParent(node);

Parameters

node
Type: TNode
The tree node.

Return Value

The parent of node, or the default value of TNode if node is a root node.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionnode is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also