The TreeViewItem class in C# is used to represent an item in a TreeView control. The BringIntoView method of the TreeViewItem class is used to bring the item into view within the TreeView control.
Example 1:
TreeViewItem item = new TreeViewItem(); item.BringIntoView();
This code creates a new TreeViewItem object and calls the BringIntoView method to bring the item into view within the TreeView control.
This code gets the selected item in the TreeView control and casts it to a TreeViewItem object. Then, it calls the BringIntoView method to bring the selected item into view within the TreeView control.
Package Library: System.Windows.Controls.TreeViewItem class is part of the WPF (Windows Presentation Foundation) library.
C# (CSharp) TreeViewItem.BringIntoView - 30 examples found. These are the top rated real world C# (CSharp) examples of TreeViewItem.BringIntoView from package GrapplingHookFighters extracted from open source projects. You can rate examples to help us improve the quality of examples.