How do I make a TreeNode not visible? (C#)

后端 未结 4 850
慢半拍i
慢半拍i 2021-01-19 05:57

There is probably a really straightforward answer to this but I\'m having difficulty finding it.

Simple, I have a TreeNode and I would like to make its visibility fa

4条回答
  •  余生分开走
    2021-01-19 06:25

    I don't think you can do that. There is an IsVisible property, but it is readonly and will indicate whether the node is currently visible within the client area of the TreeView control. I think you will need to remove it from the nodes collection in which it resides (and optionally remember the position of it to be able to restore it.

提交回复
热议问题