HeaderPane
Main
Hide
Share Link
Print

TreeLinesPen Property, SftTree Class

Defines the pen style used to draw tree lines.

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

Syntax

public LinesPenStyleEnum TreeLinesPen { get; set; }
Public Property TreeLinesPen As LinesPenStyleEnum

Value

The tree lines pen style.

The default value is LinesPenStyleEnum.Solid.

Comments

Defines the pen style used to draw tree lines.

Columns and cells cannot individually define the pen style. It applies to all tree lines throughout the control.

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

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

        private void ExpandCollapseButtonsXP() {

VB.NET

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

Private Sub ExpandCollapseButtonsXP()

See Also SftTree Class | Classes | SftTree/NET 3.0