EnumerateView.SetRoot

This page contains reference documentation for the SetRoot function. This function sets the root of the Enumerate View to the node passed through the function.

Prototype

int SetRoot( Node Node )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

EnumerateView a_oView = (EnumerateView)Application.GetEditor( "{1F922100-F612-46D4-A453-4B81096121A9}" );
a_oView.SetRoot( Model.GetSelectedNode( 0 ).GetNode() );
a_oView.Activate();

Working Sample Code

For sample code: