How can we add a node to a treeview that i开发者_C百科s not leaf. I want to select node type myself. How can I do this?
A leaf is just a node with no sub-nodes. So if you want a TreeNode instance to not be a leaf, make sure it has children. There's nothing more to it than that.
精彩评论