TreeNode to identify

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

Besides Tag property of a TreeNode, what property I can use to identify the
node ?
I will store a TreeNode with a unique ID, what property should I store this
ID into ?
 
Alan,

What is wrong with the Tag? You can create a structure and put it in
the tag which will hold all the relevant information you need it to.

You could also use the FullPath property on the node to get the full
path of the tree node. This ^should^ uniquely identify the node in the
tree, but that depends on the data that is used to name the nodes on the
tree.

Hope this helps.
 
Alan T said:
Besides Tag property of a TreeNode, what property I can use to identify
the node ?
I will store a TreeNode with a unique ID, what property should I store
this ID into ?

You could always inherit from treenode and create your own property and call
it Tag2 if you like ;-)
 
Back
Top