SftTree/NET 2.0 - Tree Control for Windows Forms


Expand/Collapse Buttons

Expand/collapse buttons are optional buttons displayed on the tree lines (see SftTree.TreeLineStyle and ColumnClass.ShowHierarchy) to allow users to expand and collapse tree sections by clicking a button. The button images can be modified using the SftTree.Buttons property and are shared between all items. Items on level 0 (the highest level or root level) have special level 0 expand/collapse buttons which can be enabled separately using the SftTree.TreeLineStyle property, but share the same graphics.

Expand/collapse buttons for individual items can be defined using the ItemClass.ExpandCollapseButton property.

When the user clicks on the expand/collapse buttons, the ItemClick event occurs and depending on the SftTree.AutoRespond property, items are expanded/collapsed automatically.