Question

Puis-je attacher un objet utilisateur à un TreeNode en C #?

Était-ce utile?

La solution

Oui. Vous pouvez utiliser la propriété Tag pour stocker tout objet utilisateur pour un nœud d'arborescence particulier.

http://msdn.microsoft. com / fr-fr / library / system.windows.forms.treenode.tag.aspx

TreeNode node = CreateATreeNode();
node.Tag = myStateObject;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top