title: Getting all visible Nodes in a TreeView
body: <p>I want to get the node's keys just 'only in view' on treeview.</p>
  
  <p>Here is the example;</p>
  
  <p><a href="https://i.stack.imgur.com/T65rc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T65rc.png" alt="enter image description here"></a></p>
  
  <p>I am using below code to get all node recursively. It just return all nodes key as expected. however i need to get the keys that only in treeview's view;</p>
  
  <pre><code>public void PrintNodesRecursive(UltraTreeNode oParentNode)
  {
      if (oParentNode.Nodes.Count == 0)
      {
          return;
      }
      foreach (UltraTreeNode oSubNode in oParentNode.Nodes)
      {
          MessageBox.Show(oSubNode.Key.ToString());
          PrintNodesRecursive(oSubNode);
      }
  }
  
  private void ultraButton3_Click(object sender, EventArgs e)
  {
      PrintNodesRecursive(ultraTree1.Nodes[0]);
  }
  </code></pre>
  
  <p>I don't know i should follow different path or just reorganize code. </p>
  
  <p>I just stacked after many hours. Need your help.</p>