How to get the co开发者_JAVA技巧ntainer TreeView
of a TreeNode
??
Thank you all.
There does not seem to be a way other than reflection:
TreeNode node = GetNode();
TreeView view =
(TreeView) node.GetType().
GetProperty("Owner", BindingFlags.Instance | BindingFlags.NonPublic).
GetValue(node, null);
精彩评论