# C1.Win.FlexGrid.C1FlexGridBase.ScrollToScrollBarAnnotation

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_ScrollToScrollBarAnnotation_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ScrollToScrollBarAnnotation*">ScrollToScrollBarAnnotation Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_ScrollToScrollBarAnnotation_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ScrollToScrollBarAnnotation*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ScrollToScrollBarAnnotation_C1_Win_Themes_Shared_ScrollBarAnnotation_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ScrollToScrollBarAnnotation(C1.Win.Themes.Shared.ScrollBarAnnotation)">ScrollToScrollBarAnnotation(ScrollBarAnnotation)</h4>
<div class="markdown level1 summary"><p>Scrolls to scrollbar annotation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollToScrollBarAnnotation(ScrollBarAnnotation annotation)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ScrollToScrollBarAnnotation(annotation As ScrollBarAnnotation)</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><span class="xref">ScrollBarAnnotation</span></td>
      <td><span class="parametername">annotation</span></td>
      <td><p>Scrollbar annotation instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_ScrollToScrollBarAnnotation_C1_Win_Themes_Shared_ScrollBarAnnotation__examples">Examples</h5>
<p>Provide an annotation to the method (for example from the ScrollBarAnnotations collection) and it will scroll to it.</p>
<pre><code class="lang-csharp">private void Button_Click(object sender, EventArgs e)
{
    ScrollBarAnnotation firstAnnotation = c1FlexGrid1.ScrollBarAnnotations.First();
    c1FlexGrid1.ScrollToScrollBarAnnotation(firstAnnotation);
}</code></pre>

</div>
