Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptions.CollapseAll Method

Collapses all entries (hides child entries).

Syntax

VB.NETobject.CollapseAll
VBobject.CollapseAll
C#.NETvoid object.CollapseAll();
VC++HRESULT object->CollapseAll();
CHRESULT object->raw_CollapseAll();

object

A SftOptions object.

Comments

The CollapseAll method collapses all entries (hides child entries).

This method is typically only useful when initializing a form as it is displayed, to hide all child items by collapsing the parent items.

To insure that the end-user can expand the items again, the ExpandButtons property should be set to True, so expand/collapse buttons are displayed.

The Entry.Collapse method can be used to collapse one entry.

The ExpandAll method can be used to expand all parent items.

Example

SftOptions1.ExpandButtons = True
SftOptions1.Add "", "Topic1", "Sample Topic 1", entrySftOptionsTopic, "", "", _
 Nothing, "", "", "", ""
SftOptions1.Add "Topic1", "Cb1", "Check Box 1", entrySftOptionsCheckBox, "", "", _
 Nothing, "", "", "", ""
SftOptions1.Add "Topic1", "Cb2", "Check Box 2", entrySftOptionsCheckBox, "", "", _
 Nothing, "", "", "", ""
SftOptions1.Add "", "Topic2", "Sample Topic 2", entrySftOptionsTopic, "", "", _
 Nothing, "", "", "", ""
SftOptions1.CollapseAll
SftOptions1.InitializationComplete

See Also SftOptions Object | Object Hierarchy


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