Gets or sets a value indicating whether users are allowed to expand or collapse the subtree that starts from this node.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public bool Expandable { get; set; } |
Visual Basic Copy Code |
---|
Public Property Expandable As Boolean |
true if users are allowed to expand / collapse the tree starting from this node; otherwise, false. The default is 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.
A tree can be collapsed or expanded programmatically by invoking the Collapse or Expand methods on the tree root node.
WpfDiagram Programmer's Guide | © 2024 MindFusion |