select node in TreeNode
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Luca Re
el 14 de Oct. de 2024
Editada: Divyajyoti Nayak
el 18 de Oct. de 2024
hi, a is a parents and b is a children (see pics)
i want to select children using code
How can i do it?
0 comentarios
Respuesta aceptada
Divyajyoti Nayak
el 14 de Oct. de 2024
Editada: Divyajyoti Nayak
el 18 de Oct. de 2024
I assume you want to programmatically "check" the child node checkbox. The "CheckedNodes" property of the parent "Tree" object can be used to achieve this. Here's the documentation link to help you out:
Here's some sample code to "check" the child node:
app.Tree.CheckedNodes = [app.Tree.CheckedNodes app.ChildNode];
%app.Tree is the parent Tree object
%app.ChildNode is the tree node that needs to be checked
If you want to "select" the child node and not "check" it, then similarly, the "SelectedNodes" property can be used.
Hope this helps!
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Programming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!