Method EnsureVisible
EnsureVisible(int)
Ensures that the child item of the root item with the specified index is visible within the tree view control.
public virtual bool EnsureVisible(int index)
Parameters
index
intThe zero-based index of the item to make visible.
Returns
- bool
true
if the item was successfully scrolled into view; otherwise,false
.
Remarks
This method scrolls the tree view as necessary to bring the specified item into view. If the index is out of range or the item is already visible, no action is taken.