Sets a value indicating whether users are allowed to expand or collapse the tree branch that starts from this node.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public void setExpandable ( |
true if the tree branch that starts from this node can be expanded or collapsed by users, otherwise false.
This property is useful mostly when nodes form a tree-like hierarchical structure. If it is enabled, a small [±] button is drawn beside the node. Clicking that button either shows or hides all children of this node in the tree. It depends on the diagram's ExpandOnIncoming property which items connected to a node are considered its children. The tree expansion continues recursively down the child nodes if the RecursiveExpand property is enabled.
The appearance of the collapse / expand icon can be customized by setting Renderers.ExpandIconRenderer.