ASP.NET Pack Programmer's Guide
Diagram.ExpandButtonAction Property
See Also
 





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

 Syntax

C#  Copy Code

public ExpandButtonAction ExpandButtonAction { get; set; }

Visual Basic  Copy Code

Public Property ExpandButtonAction As ExpandButtonAction

 Property Value

A member of the ExpandButtonAction enumeration. The default is ExpandTreeBranch.

 Remarks

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.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
ExpandButtonPosition Property
TreeCollapsed Event
TreeExpanded Event