Expand Method, SftTreeItems Object
Expands all items so their become visible.
|VB.NET||object.Expand(ByVal Preserve As Boolean, ByVal Depth As Boolean)|
|VB||object.Expand(ByVal Preserve As Boolean, ByVal Depth As Boolean)|
|C#.NET||void object.Expand(bool Preserve, bool Depth);|
|VC++||HRESULT object->Expand(VARIANT_BOOL Preserve, VARIANT_BOOL Depth);|
|C||HRESULT object->raw_Expand(VARIANT_BOOL Preserve, VARIANT_BOOL Depth);|
A SftTreeItems object.
Defines whether the expand/collapse state is restored. This argument is ignored if the Depth argument is True.
|True||Restores the expand/collapse state of items made visible, as saved by a previous call to Items.Collapse or Item.Collapse.|
|False||The expand/collapse state is not restored. All items are expanded and immediate are made visible. They may be expanded or collapsed based on the Depth argument.|
Defines the depth of the items to become visible.
|True||Expands all items, including non-immediate items. Preserve is ignored as all are expanded.|
|False||Expands items, based on the Preserve settings.|
The Expand method expands all items so their become visible.
The Expand method expands all items and restores the expand/collapse state of all items, as saved by a previous Items.Collapse or Item.Collapse method call. The Expand method visits each item on level 0 and expands these based on the Preserve and Depth arguments.
If items are already expanded when using Expand, the items remains unchanged. It does not make any indirect visible. To make sure that an item's indirect are shown, use the Items.Collapse method first, which collapses all items (and all ), followed by Expand. Now all are visible.
See Also SftTreeItems Object | Object Hierarchy