Defines the expand/collapse button display method.
Get
| C# | SftTreeButtonStyleConstants Style = object.ButtonStyle; |
| VB.NET | Style = object.ButtonStyle As SftTreeButtonStyleConstants |
| C++ | enum SftTreeButtonStyleConstants Style = object->ButtonStyle; enum SftTreeButtonStyleConstants Style = object->GetButtonStyle(); |
| C | HRESULT object->get_ButtonStyle(enum SftTreeButtonStyleConstants* Style); |
| VB | Style = object.ButtonStyle As SftTreeButtonStyleConstants |
Put
| C# | SftTreeButtonStyleConstants object.ButtonStyle = Style; |
| VB.NET | object.ButtonStyle = Style As SftTreeButtonStyleConstants |
| C++ | enum SftTreeButtonStyleConstants object->ButtonStyle = Style; void object->PutButtonStyle(enum SftTreeButtonStyleConstants Style); |
| C | HRESULT object->put_ButtonStyle(enum SftTreeButtonStyleConstants Style); |
| VB | object.ButtonStyle = Style As SftTreeButtonStyleConstants |
object
Style
Defines the expand/collapse button display method.
| Style | Value | Description |
|---|---|---|
| buttonsSftTreeNone | 0 | None. The tree control does not display expand/collapse buttons. |
| buttonsSftTree1 | 1 | The tree control displays expand/collapse buttons for parent items on level 1 and above. |
| buttonsSftTreeAll | 2 | The tree control displays expand/collapse buttons for parent items on all levels. |
The ButtonStyle property defines the expand/collapse button display method.
If the connecting tree lines are not displayed (see Items.TreeLineStyle property), the expand/collapse buttons are not shown. Tree lines are required for expand/collapse buttons to be shown.
The expand/collapse buttons graphic is defined using the ButtonAppearance property.
See Also SftTree Object | Object Hierarchy