Skip to main content

Expand Buttons

An Expand Button is displayed if the corresponding node has children, and enables end-users to expand or collapse it.

 

TreeView-VE-Expand and Collapse Button

When a node is collapsed, the expand button displays a ‘plus’ sign, indicating that the node can be expanded by clicking the button. Once a node has been expanded, the button displays a ‘minus’ sign.

You can toggle the visibility of expand buttons via the TreeViewSettings.ShowExpandButtons property. Regardless of the property value, end-users can expand or collapse nodes by double-clicking them.

The table below lists the main members that affect element appearance and functionality.

Characteristics

Members

Visibility

TreeViewSettings.ShowExpandButtons

Image

TreeViewImages.ExpandButton (via TreeViewSettings.Images.ExpandButton),

TreeViewImages.ExpandButtonRtl (via TreeViewSettings.Images.ExpandButtonRtl),

TreeViewImages.CollapseButton (via TreeViewSettings.Images.CollapseButton),

TreeViewImages.CollapseButtonRtl (via TreeViewSettings.Images.CollapseButtonRtl)

Member Table

Member Table: Expanding and Collapsing Nodes