Back Help
This page contains reference documentation for the ChildCount member. This member gets the child count for a group node.
int ChildCount;
Examples are as follows:
int childCount = parent.ChildCount;
for( int i = 0; i < childCount; ++i )
{
Node child = parent.Children[i];
if( child.IsDerived( Group ) )
{
Group testCollNode = (Group)child;
if( testCollNode.ChildCount == 1 && testCollNode.Children[0].IsDerived( CollectionNode ) )
{
SetCollectionVisibility( (CollectionNode)testCollNode.Children[0], false );
}
}
}
For sample code: