HeaderPane
Main
Hide
Share Link
Print

TreeLineStyle Property, SftTree Class

Defines how tree lines are displayed.

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

Syntax

public TreeLineStyleEnum TreeLineStyle { get; set; }
Public Property TreeLineStyle As TreeLineStyleEnum

Value

The tree line style.

The default value is TreeLineStyleEnum.AllLevels.

Comments

Defines how tree lines are displayed.

The color used for tree lines can be defined using the SftTree.TreeLineColor property.

SftTree.TreeLinesPen defines the pen style used to draw tree lines.

Tree lines are only used in the item area and only if a hierarchy column has been defined using ColumnClass.ShowHierarchy.

Examples

C#

        private void ExpandCollapseButtonsSimple() {
            sftTree1.ButtonLook = ButtonLookEnum.Simple;
            sftTree1.TreeLinesPen = LinesPenStyleEnum.Dots;
        }

        private void ExpandCollapseButtonsVista() {
            sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceVista;
            sftTree1.TreeLineStyle = TreeLineStyleEnum.None;
        }

        private void ExpandCollapseButtonsXP() {
            sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceXP;
            sftTree1.TreeLineStyle = TreeLineStyleEnum.None;
        }

        private void ExpandCollapseButtonsNormal() {

VB.NET

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

Private Sub ExpandCollapseButtonsXP()
    sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceXP
    sftTree1.TreeLineStyle = TreeLineStyleEnum.None
End Sub

Private Sub ExpandCollapseButtonsNormal()

See Also SftTree Class | Classes | SftTree/NET 3.0