ExpandAll

Description

Recursively expands a specified item.

Applies to

TreeView controls

Syntax

treeviewname.ExpandAll ( itemhandle )

Argument

Description

treeviewname

The TreeView control in which you want to expand an item and all the subordinate items in its hierarchy

itemhandle

The handle of the item you want to expand


Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

To expand all levels in a TreeViewItem, use the ExpandAll function for the RootTreeItem.

Examples

This example expands all levels of a TreeView control:

long ll_tvi
ll_tvi = tv_list.FindItem(RootTreeItem! , 0)
tv_list.ExpandAll(ll_tvi)

See also

CollapseItem

ExpandItem

FindItem