Table of Contents

Method EnsureVisible

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

EnsureVisible(TreeViewItem?)

Ensures that the tree item is visible, expanding tree items and scrolling the tree view control as necessary.

public virtual void EnsureVisible(TreeViewItem? item)

Parameters

item TreeViewItem

Remarks

When the EnsureVisible(TreeViewItem?) method is called, the tree is expanded and scrolled to ensure that the current tree item is visible in the TreeView. This method is useful if you are selecting a tree item in code based on certain criteria. By calling this method after you select the item, the user can see and interact with the selected item.