Gets or sets a value indicating what should happen when a user clicks the [±] button that is displayed near expandable nodes.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public ExpandButtonAction ExpandButtonAction { get; set; } |
Visual Basic Copy Code |
---|
Public Property ExpandButtonAction As ExpandButtonAction |
A member of the ExpandButtonAction enumeration. The default is ExpandTreeBranch.
The default behavior of a [±] button displayed nearby an Expandable node is to hide or show the children of that node. In that case, the children of a node are all nodes that can be reached from it by following recursively the OutgoingLinks or IncomingLinks, as defined by the ExpandOnIncoming property.
To implement custom expand/collapse functionality, set ExpandButtonAction to RaiseEvents and handle the ExpandButtonClicked event. That lets you use other criteria for what nodes should be shown or hidden, for example, containment or hierarchical grouping.
Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
ExpandButtonPosition Property
TreeCollapsed Event
TreeExpanded Event
NetDiagram Programmer's Guide | © 2023 MindFusion |