IsItemExpanded Function

Class

TreeView.

Action

Tests whether the item is expanded.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

bExpanded = treeview.IsItemExpanded(Item)
Variable Description
bExpanded TRUE if the item is expanded. BOOLEAN.
Item The item to test. STRING or INTEGER.

Notes

Returns TRUE if the treeview item has children and is not collapsed.

Example

Verify(MyDg.MyTView.IsItemExpanded("/root/child"), TRUE)