c# - TreeNode index property by name -
my question following. need index of treenode know name of node. have idea, how can property?
i'd same:
int treeindex = treeview1.nodes["mynode"].index; if it's possible please show me sample code.
you can this,
var result = treeview1.nodes.oftype<treenode>() .firstordefault(node => node.name.equals("name")); then access index within result.
c# winforms treeview treenode
No comments:
Post a Comment