Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.TreeLineStyle Property

Defines the display style of connecting tree lines.

Syntax

Get

VB.NETStyle = object.TreeLineStyle As SftDirectoryTreeLineStyleConstants
VBStyle = object.TreeLineStyle As SftDirectoryTreeLineStyleConstants
C#.NETSftDirectoryTreeLineStyleConstants Style = object.TreeLineStyle;
VC++enum SftDirectoryTreeLineStyleConstants Style = object->TreeLineStyle;
enum SftDirectoryTreeLineStyleConstants Style = object->GetTreeLineStyle();
CHRESULT object->get_TreeLineStyle(enum SftDirectoryTreeLineStyleConstants* Style);

Put

VB.NETobject.TreeLineStyle = Style As SftDirectoryTreeLineStyleConstants
VBobject.TreeLineStyle = Style As SftDirectoryTreeLineStyleConstants
C#.NETSftDirectoryTreeLineStyleConstants object.TreeLineStyle = Style;
VC++enum SftDirectoryTreeLineStyleConstants object->TreeLineStyle = Style;
void object->PutTreeLineStyle(enum SftDirectoryTreeLineStyleConstants Style);
CHRESULT object->put_TreeLineStyle(enum SftDirectoryTreeLineStyleConstants Style);

object

A SftDirectory object.

Style

Defines the display style of connecting tree lines.

StyleValueDescription
treeLineStyleSftDirectoryNone0None - No tree lines are displayed.
treeLineStyleSftDirectoryDotted1Dotted - Dotted tree lines are displayed.
treeLineStyleSftDirectoryAutomatic2Automatic - Depending on the operating system, tree lines are enabled. On Windows 98, ME, 2000, dotted tree lines are used. On Windows XP and above, tree lines are not used. This behavior is similar to Windows Explorer.

Comments

The TreeLineStyle property defines the display style of connecting tree lines.

Examples

VB.NET

Private Sub CheckTreeLines_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckTreeLines.CheckedChanged
    Dim style As SftDirectoryTreeLineStyleConstants

    If CheckTreeLines.CheckState = CheckState.Checked Then
        style = SftDirectoryTreeLineStyleConstants.treeLineStyleSftDirectoryDotted
    Else
        style = SftDirectoryTreeLineStyleConstants.treeLineStyleSftDirectoryNone
    End If
    AxSftDirectoryTV.TreeLineStyle = style
    AxSftDirectoryDL.TreeLineStyle = style
    AxSftDirectoryTV_Combo.TreeLineStyle = style
    AxSftDirectoryDL_Combo.TreeLineStyle = style
End Sub

Private Sub CheckCheckBoxes_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckCheckBoxes.CheckedChanged
    Dim style As SftDirectoryCheckBoxDisplayConstants

VB6

Private Sub CheckTreeLines_Click()
    Dim Style As SftDirectoryTreeLineStyleConstants

    If CheckTreeLines.Value <> 0 Then
        Style = treeLineStyleSftDirectoryDotted
    Else
        Style = treeLineStyleSftDirectoryNone
    End If
    SftDirectoryTV.TreeLineStyle = Style
    SftDirectoryDL.TreeLineStyle = Style
    SftDirectoryTV_Combo.TreeLineStyle = Style
    SftDirectoryDL_Combo.TreeLineStyle = Style
End Sub

Private Sub CheckCheckBoxes_Click()
    Dim Style As SftDirectoryCheckBoxDisplayConstants

C#

private void CheckTreeLines_CheckedChanged(object sender, System.EventArgs e) {
    SftDirectoryTreeLineStyleConstants style;

    if (CheckTreeLines.CheckState == CheckState.Checked)
        style = SftDirectoryTreeLineStyleConstants.treeLineStyleSftDirectoryDotted;
    else
        style = SftDirectoryTreeLineStyleConstants.treeLineStyleSftDirectoryNone;
    axSftDirectoryTV.TreeLineStyle = style;
    axSftDirectoryDL.TreeLineStyle = style;
    axSftDirectoryTV_Combo.TreeLineStyle = style;
    axSftDirectoryDL_Combo.TreeLineStyle = style;
}

private void CheckCheckBoxes_CheckedChanged(object sender, System.EventArgs e) {
    SftDirectoryCheckBoxDisplayConstants style;

C++

    SftDirectoryTreeLineStyleConstants style;

    if (m_CheckTreeLines.GetCheck())
        style = treeLineStyleSftDirectoryDotted;
    else
        style = treeLineStyleSftDirectoryNone;

    ISftDirectoryPtr vDirTV = m_SftDirectoryTV.GetControlUnknown();
    vDirTV->TreeLineStyle = style;
    ISftDirectoryPtr vDirDL = m_SftDirectoryDL.GetControlUnknown();
    vDirDL->TreeLineStyle = style;
    ISftDirectoryPtr vDirTV_Combo = m_SftDirectoryTV_Combo.GetControlUnknown();
    vDirTV_Combo->TreeLineStyle = style;
    ISftDirectoryPtr vDirDL_Combo = m_SftDirectoryDL_Combo.GetControlUnknown();
    vDirDL_Combo->TreeLineStyle = style;
}

See Also SftDirectory Object | Object Hierarchy


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