Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
How to get all the nodes from WinTree as a TreeCollection
posted

Hello,

         I am trying to get all the nodes in my Win Tree Control as a TreeCollection. Just unable to figure out which member will return this to me. Also is there a way to get the number of levels within the Win Tree?. It would be ideal if there is a API which can take the level I pass to it and return me the nodes on that level as a TreeCollection. Let me know your thoughts. Thanks.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

        The Nodes in the WinTree are not stored in a single collection, you would need to walk through the nodes and their child nodes recursively to get all of them.  

Children