|
|
|
|
|
- Node to expand
- Selection bar
<TreeView>.ExpandAll (Function) In french: <Arbre>.DérouleTout Expands a node and all its child elements in a TreeView control. Example of TreeView control:
Reminder: At run time, a node is expanded when the node name is preceded by "-".
// Expand the "Desserts" node in the "TREE_RecipeTV" TreeView control // All child elements are also expanded Res = TREE_RecipeTV.ExpandAll("Recipes" + TAB + "Desserts")
Syntax
<Result> = <TreeView control>.ExpandAll([<Node to expand>])
<Result>: Boolean - True if the node and its child elements have been expanded,
- False otherwise.
<TreeView control>: Control name Name of TreeView control to use. <Node to expand>: Optional character string Path of node to expand (as well as its child elements). This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If this parameter is not specified, the TreeView control is expanded from the root. In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID). Remarks Node to expand If the node to expand: - is not found, <TreeView>.ExpandAll returns False.
- is not specified, <TreeView>.ExpandAll returns True and the TreeView control is expanded from its root.
- is a leaf, <TreeView>.ExpandAll returns True.
- is already expanded, <TreeView>.ExpandAll returns True and the child elements are expanded if necessary.
- is not visible, <TreeView>.ExpandAll makes this node visible. Its "parent" and "sibling" elements are also displayed. The "parent" elements are expanded.
During the call to <TreeView>.ExpandAll, if the specified branch and/or its children include a procedure associated by ..AddChildDelayed, this procedure will be run. Selection bar <TreeView>.ExpandAll does not modify the position of the selection bar.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|