Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.Collapse Method

Collapses all items so no child items are visible.

Syntax

VB.NETobject.Collapse(ByVal Preserve As Boolean)
VBobject.Collapse(ByVal Preserve As Boolean)
C#.NETvoid object.Collapse(bool Preserve);
VC++HRESULT object->Collapse(VARIANT_BOOL Preserve);
CHRESULT object->raw_Collapse(VARIANT_BOOL Preserve);

object

A SftBoxItems object.

Preserve

Defines whether the expand/collapse state is preserved.

PreserveDescription
TruePreserves 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.
FalseThe expand/collapse state is not preserved.

Comments

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


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