HeaderPane
Main
Hide
Share Link
Print

ButtonLook Property, SftTree Class

Defines the appearance of expand/collapse buttons.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ButtonLookEnum ButtonLook { get; set; }
Public Property ButtonLook As ButtonLookEnum

Value

The button appearance.

The default value is ButtonLookEnum.ThemedSystem.

Comments

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).

Examples

C#

        }

        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;
        }

VB.NET

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 Sub

See Also SftTree Class | Classes | SftTree/NET 3.0