A TreeNode class has
Text Name Tag
I need to assign more values to a TreeNode class like float1, float2, … float6.
How can I do this??? pls help.
Thx,
Caslav
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a new class which inherits the TreeNode.
For each value you want to store in the treenode, create a property for that value.
When working with the Treeview, simply cast the TreeNode to your custom TreeNode class.
Example:
Usage (added after comments)