|
|
|
|
|
SftOptions.CollapseAll Method |
Collapses all entries (hides child entries).
Syntax
|
VB.NET |
object.CollapseAll |
||
|
VB |
object.CollapseAll |
||
|
C#.NET |
void object.CollapseAll(); |
||
|
VC++ |
HRESULT object->CollapseAll(); |
||
|
C |
HRESULT object->raw_CollapseAll(); |
||
|
Delphi |
procedure object.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 SftOptionsEntry.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