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
Expands all items in the item collection so their dependents become visible.
Class: ItemCollectionClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public void Collapse( CollapseStyleEnum Style );
Public Sub Collapse( ByVal Style As CollapseStyleEnum )
Style
Defines how the items and their dependents are expanded.
Expands all items in the item collection so their dependents become visible.
This method can only be used for items in the item area.
sftTree1.Initializing = true;
sftTree1.Columns.Count = 1;
for (int i = 0 ; i < 10 ; ++i) {
ItemClass item = sftTree1.ItemCollection.Add("Item " + i.ToString());
for (int ic = 0 ; ic < 10 ; ++ic) {
ItemClass child = item.Add("Child item " + ic.ToString());
}
}
sftTree1.ItemCollection.Collapse(CollapseStyleEnum.All);
sftTree1.Columns.MakeOptimal(0, false);
sftTree1.RecalcHorizontalExtent();
// We need to set up the tree control as a drop target
sftTree1.AllowDrop = true;
sftTree1.AutoExpandDragDrop = true;
sftTree1.AutoExpandArea = AutoExpandAreaEnum.AllColumns;
sftTree1.Columns.Count = 1
For i As Integer = 0 To 9
Dim item As ItemClass = sftTree1.ItemCollection.Add("Item " & i.ToString())
For ic As Integer = 0 To 9
Dim child As ItemClass
child = item.Add("Child item " & ic.ToString())
Next
Next
sftTree1.ItemCollection.Collapse(CollapseStyleEnum.All)
sftTree1.Columns.MakeOptimal(0, False)
sftTree1.RecalcHorizontalExtent()
' We need to set up the tree control as a drop target
sftTree1.AllowDrop = True
sftTree1.AutoExpandDragDrop = True
sftTree1.AutoExpandArea = AutoExpandAreaEnum.AllColumnsSee Also ItemCollectionClass Class | Classes | SftTree/NET 2.0
