Group.GetChildIndex

This page contains reference documentation for the GetChildIndex function. This function gets the index of a node in its parent child list.

Prototype

int GetChildIndex( Node NodeToGetIndexOf )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

Node node = Model.GetSelectedNode( s ).GetNode();
Group parent = node.Parent();
int startIndex = parent.GetChildIndex( node );
for( int c = startIndex; c < parent.ChildCount; ++c )
{
   Model.Select( parent.Children[c] );
}

Working Sample Code

For sample code: