# GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.ScrollToCaret

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_ScrollToCaret_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.ScrollToCaret*">ScrollToCaret Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_ScrollToCaret_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.ScrollToCaret*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_ScrollToCaret" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.ScrollToCaret">ScrollToCaret()</h4>
<div class="markdown level1 summary"><p>Scrolls the contents of the control to the current caret position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollToCaret()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ScrollToCaret()</code></pre>
</div>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_ScrollToCaret_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method enables you to scroll the contents of the control until the caret is within the visible region of the control. If the caret is positioned below the visible region of the control, the <b>ScrollToCaret</b> method will scroll the contents of the control until the caret is visible at the bottom of the control. If the caret is positioned above the visible region of the control, this method scrolls the contents of the control until the caret is visible at the top of the control. You can use this method in a multiline control to ensure that the current text entry point is within the visible region of the control.</p>
<div class="NOTE"><h5>note</h5><p>
This method has no effect if the control does not have focus or if the caret is already positioned in the visible region of the control.
</p></div>
</div>
</div>
