h = uitreenode()
h = uitreenode(parent)
h = uitreenode(..., propertyName, propertyValue)
| Paramètre | Description |
|---|---|
| parent | parent object. |
| propertyName, propertyValue | name-value pairs. |
| Paramètre | Description |
|---|---|
| h | UI object. |
n = uitreenode(parent) crée un nœud dans un uitree ou sous un autre TreeNode. Propriétés : Text, NodeData, Icon, ContextMenu.
f = uifigure('Visible', 'off', 'Name', 'Tree nodes', 'Position', [100 100 420 260]);
tr = uitree(f, 'Position', [70 40 210 180]);
n1 = uitreenode(tr, 'Text', 'Project');
uitreenode(n1, 'Text', 'Input');
uitreenode(n1, 'Text', 'Results');
expand(tr);
drawnow();
f = uifigure();
t = uitree(f);
n = uitreenode(t, 'Text', 'Nœud 1', 'NodeData', [1 2 3]);
| Version | Description |
|---|---|
| 2.0.0 | initial version |