EnsureVisible

This method ensures a specified ListItem or Node object is visible. If necessary, this method expands Node objects and scrolls the TreeView control. The method only scrolls the ListView control.

Syntax

object.EnsureVisible

Parameters

object
Object expression that evaluates to a ListView or TreeView control as well as a ListItem or Node object.

Return Value

None.

Remarks

Use the EnsureVisible method when you want a particular Node or ListItem object, which might be hidden deep in a TreeView or ListView control, to be visible.

The method will not operate on a TreeView control if the Scroll property is set to False.