ples">Collections</a>
</p>
<p>
  You can also look at the structure of the visual tree of a node.  With this recursive function:
  <pre class="lang-js"><code> function walk(x, level, index) {
   console.log(level + "," + index + ": " + x.toString());
   if (!(x instanceof go.Panel)) return;
   for (let i = 0; i < x.elements.count; i++) walk(x.elt(i), level+1, i);
 }</code></pre>
<p>
  you could call
</p>
<pre class="lang-js"><code> walk(myNode, 0, 0)</code></pre>
<p>
  and in the Org Chart sample get result