Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ButtonStyle Property, SftTree Object

Defines the expand/collapse button display method.

Syntax

Get

VB.NETStyle = object.ButtonStyle As SftTreeButtonStyleConstants
VBStyle = object.ButtonStyle As SftTreeButtonStyleConstants
C#.NETSftTreeButtonStyleConstants Style = object.ButtonStyle;
VC++enum SftTreeButtonStyleConstants Style = object->ButtonStyle;
enum SftTreeButtonStyleConstants Style = object->GetButtonStyle();
CHRESULT object->get_ButtonStyle(enum SftTreeButtonStyleConstants* Style);

Put

VB.NETobject.ButtonStyle = Style As SftTreeButtonStyleConstants
VBobject.ButtonStyle = Style As SftTreeButtonStyleConstants
C#.NETSftTreeButtonStyleConstants object.ButtonStyle = Style;
VC++enum SftTreeButtonStyleConstants object->ButtonStyle = Style;
void object->PutButtonStyle(enum SftTreeButtonStyleConstants Style);
CHRESULT object->put_ButtonStyle(enum SftTreeButtonStyleConstants Style);

object

A SftTree object.

Style

Defines the expand/collapse button display method.

StyleValueDescription
buttonsSftTreeNone0None. The tree control does not display expand/collapse buttons.
buttonsSftTree11The tree control displays expand/collapse buttons for parent items on level 1 and above.
buttonsSftTreeAll2The tree control displays expand/collapse buttons for parent items on all levels.

Comments

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


Last Updated 08/13/2020 - (email)
© 2021 Softel vdm, Inc.