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
Used with the Expand method.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum ExpandStyleEnum;
Public Enum ExpandStyleEnum
Name | Description |
---|---|
All | Expand all dependent items, including indirect dependent items resulting in all dependents fully expanded. |
DirectOnly | Expand this item, collapse all its dependents. |
Simple | Expand this item, leave its dependents unchanged. |
RestoreLast | Expand this item and restore all its dependents to their last saved state. |
Used with the Expand method.
private void ClickCategory(ItemClass item) { if (item.Level == 0) { bool fWasExpanded = item.Expanded; if (fWasExpanded) { item.Collapse(CollapseStyleEnum.All); item.Cells[0].Image = m_PlusImage; } else { item.Expand(ExpandStyleEnum.All); item.Cells[0].Image = m_MinusImage; } item.ScrollIntoView(); } else { // selected an item } }
Private Sub ClickCategory(ByVal item As ItemClass) If item.Level = 0 Then Dim fWasExpanded As Boolean = item.Expanded If fWasExpanded Then item.Collapse(CollapseStyleEnum.All) item.Cells(0).Image = m_PlusImage Else item.Expand(ExpandStyleEnum.All) item.Cells(0).Image = m_MinusImage End If item.ScrollIntoView() Else ' selected an item End If End Sub
See Also | Classes | SftTree/NET 2.0