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
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
Return Values
Value | Description |
True | The method returns True if the ListView or TreeView control must scroll and/or expand to expose the object. |
False | The method returns False if no scrolling and/or expansion is required. |
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.