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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_CaretIndex_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.CaretIndex*">CaretIndex Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_CaretIndex_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.CaretIndex*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_CaretIndex" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.CaretIndex">CaretIndex</h4>
<div class="markdown level1 summary"><p>Gets or sets the insertion position index of the caret.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int CaretIndex { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property CaretIndex As Integer</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The zero-based insertion position index of the caret.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_CaretIndex_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      Getting this property returns the current insertion position index of the caret.
      Setting this property moves the caret to the specified insertion position.
    </p>
<p>
      An insertion position is between either characters or element tags.
    </p>
</div>
</div>
