ExposeItem Method (TreeView)

Class

TreeView.

Action

Scrolls a viewable treeview item into view.

Availability

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

Syntax

treeview.ExposeItem (item)
Variable Description
item The item to scroll into view. STRING or INTEGER.

Notes

ExposeItem does not make a nonviewable item viewable by expanding its parent item. Use the Expand method on the parent item to do this.

For information on specifying item, see the TreeView class.

ExposeItem is useful primarily for drag and drop operations, as in the example below. In the example, if the treeview item were scrolled into view at the time of the PressItem call, then Silk Test Classic would not be able to scroll it into view for the ReleaseItem without dropping the listview item somewhere else.

Example

MyDlg.MyTreeView.ExposeItem ("/root/child/grandchild") 
MyDlg.MyListView.PressItem ("listview item to drop on treeview item") 
MyDlg.MyTreeView.ReleaseItem ("/root/child/grandchild")