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
Collapses all items so no child items are visible.
VB.NET | object.Collapse(ByVal Preserve As Boolean) |
VB | object.Collapse(ByVal Preserve As Boolean) |
C#.NET | void object.Collapse(bool Preserve); |
VC++ | HRESULT object->Collapse(VARIANT_BOOL Preserve); |
C | HRESULT object->raw_Collapse(VARIANT_BOOL Preserve); |
object
Preserve
Defines whether the expand/collapse state is preserved.
Preserve | Description |
---|---|
True | Preserves the expand/collapse state of dependent items that are made no longer visible. A subsequent call to Items.Expand or Item.Expand will restore the items with the remembered expand/collapse state. |
False | The expand/collapse state is not preserved. |
The Collapse method collapses all items so no child items are visible.
The Collapse method collapses all dependent items of all items and saves the expand/collapse state of all dependent items, so it can be restored by a subsequent Items.Expand or Item.Expand method call.
If a parent item is collapsed, subsequently adding child items will automatically expand the item.
The drop down portion is automatically hidden when the combo box contents are changed using this method. The DropDown.SuppressOn method can be used to suppress hiding the drop down portion when adding/inserting items.
See Also SftBoxItems Object | Object Hierarchy