SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the display style of connecting tree lines.
Get
VB.NET | Style = object.TreeLineStyle As SftDirectoryTreeLineStyleConstants |
VB | Style = object.TreeLineStyle As SftDirectoryTreeLineStyleConstants |
C#.NET | SftDirectoryTreeLineStyleConstants Style = object.TreeLineStyle; |
VC++ | enum SftDirectoryTreeLineStyleConstants Style = object->TreeLineStyle; enum SftDirectoryTreeLineStyleConstants Style = object->GetTreeLineStyle(); |
C | HRESULT object->get_TreeLineStyle(enum SftDirectoryTreeLineStyleConstants* Style); |
Put
VB.NET | object.TreeLineStyle = Style As SftDirectoryTreeLineStyleConstants |
VB | object.TreeLineStyle = Style As SftDirectoryTreeLineStyleConstants |
C#.NET | SftDirectoryTreeLineStyleConstants object.TreeLineStyle = Style; |
VC++ | enum SftDirectoryTreeLineStyleConstants object->TreeLineStyle = Style; void object->PutTreeLineStyle(enum SftDirectoryTreeLineStyleConstants Style); |
C | HRESULT object->put_TreeLineStyle(enum SftDirectoryTreeLineStyleConstants Style); |
object
Style
Defines the display style of connecting tree lines.
Style | Value | Description |
---|---|---|
treeLineStyleSftDirectoryNone | 0 | None - No tree lines are displayed. |
treeLineStyleSftDirectoryDotted | 1 | Dotted - Dotted tree lines are displayed. |
treeLineStyleSftDirectoryAutomatic | 2 | Automatic - 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. |
The TreeLineStyle property defines the display style of connecting tree lines.
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
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
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;
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