Defines the appearance of expand/collapse buttons.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public ButtonLookEnum ButtonLook { get; set; }
Public Property ButtonLook As ButtonLookEnumThe button appearance.
The default value is ButtonLookEnum.ThemedSystem.
Defines the appearance of expand/collapse buttons.
The SftTree.ShowExpandCollapseButtons property is used to define whether expand/collapse buttons are shown.
Expand/collapse buttons are optional and are displayed in the hierarchy area of the hierarchy column. They are only shown if a hierarchy column has been defined (ColumnClass.ShowHierarchy).
}
private void RowHeadersOn() {
Optimize();
AdjustInfo();
}
private void ExpandCollapseButtonsSimple() {
sftTree1.ButtonLook = ButtonLookEnum.Simple;
sftTree1.TreeLinesPen = LinesPenStyleEnum.Dots;
}
private void ExpandCollapseButtonsVista() {
sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceVista;
sftTree1.TreeLineStyle = TreeLineStyleEnum.None;
}
End Sub
Private Sub RowHeadersOn()
Optimize()
AdjustInfo()
End Sub
Private Sub ExpandCollapseButtonsSimple()
sftTree1.ButtonLook = ButtonLookEnum.Simple
sftTree1.TreeLinesPen = LinesPenStyleEnum.Dots
End Sub
Private Sub ExpandCollapseButtonsVista()
sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceVista
sftTree1.TreeLineStyle = TreeLineStyleEnum.None
End SubSee Also SftTree Class | Classes | SftTree/NET 3.0