# C1.WPF.TreeView.C1TreeView.ScrollIntoView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_TreeView_C1TreeView_ScrollIntoView_" data-uid="C1.WPF.TreeView.C1TreeView.ScrollIntoView*">ScrollIntoView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_TreeView_C1TreeView_ScrollIntoView_" data-uid="C1.WPF.TreeView.C1TreeView.ScrollIntoView*"></a>
<h4 id="C1_WPF_TreeView_C1TreeView_ScrollIntoView_C1_WPF_TreeView_C1TreeViewItem_" data-uid="C1.WPF.TreeView.C1TreeView.ScrollIntoView(C1.WPF.TreeView.C1TreeViewItem)">ScrollIntoView(C1TreeViewItem)</h4>
<div class="markdown level1 summary"><p>Scrolls the content within the ScrollViewer to the specified Tree View Item</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollIntoView(C1TreeViewItem item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ScrollIntoView(item As C1TreeViewItem)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WPF.TreeView.C1TreeViewItem.html">C1TreeViewItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The Tree View Item on which we need to place focus</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_TreeView_C1TreeView_ScrollIntoView_C1_WPF_TreeView_C1TreeViewItem__examples">Examples</h5>
<p>This example demonstrates how to use the ScrollIntoView method to scroll to a specific TreeViewItem.</p>
<pre><code class="lang-csharp">// Assuming 'treeView' is an instance of C1TreeView
var itemToScrollTo = FindTreeViewItemById(treeView, itemId);
if (itemToScrollTo != null)
{
    treeView.ScrollIntoView(itemToScrollTo);
}</code></pre>

</div>
