Returns a child node of a given tree node with a specified index.

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

Syntax

C#
TNode GetChild(
	TNode node,
	int index
)
Visual Basic
Function GetChild ( _
	node As TNode, _
	index As Integer _
) As TNode
Visual C++
TNode GetChild(
	TNode node, 
	int index
)
J#
TNode GetChild(
	TNode node,
	int index
)
JScript
function GetChild(
	node : TNode, 
	index : int
) : TNode
JavaScript
function GetChild(node, index);

Parameters

node
Type: TNode
The parent node.
index
Type: System..::..Int32
The index of the child node.

Return Value

The child node.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionnode is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to the number of child nodes of node.

See Also