Home Forums WinForms controls Other WinForms controls GetChildToolWindowIndex

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18595 |

    Short Question:

    So, there is a SetChildToolWindowIndex but I can’t find how to retrieve that index. Is there a GetChildToolWindowIndex (or equivalent) that I’m missing?

     

     Root of the Problem Question:

     The reason I need the above is that when I save the layout it doesn’t save the order of the ToolWindows in the ToolWindowGroup. I discovered that if the ToolWindow nodes are rearranged in the XML then it will order them based on that. So I figured I would just rearrange the nodes before saving the xml I get from SaveLayout.

     But I can’t find anyway to get the order they are in! Thus I can’t rearrange them myself.

    If there’s an easier way to save the order of the ToolWindows that would be even better.

     Thanks. 

     Edit: Xceed.DockinWindows v 2.1.112114.170010

     

    Imported from legacy forums. Posted by Seth (had 858 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi Seth,

    There is no direct exposition of the index, you can get it by doing the following:

       ToolWindowGroup.ToolWindows.IndexOf( yourToolWindow )

     

    Imported from legacy forums. Posted by Diane [Xceed] (had 1210 views)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.