# C1.Win.Document.Util.C1DXTextLayout.GetCaretCoords

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXTextLayout_GetCaretCoords_" data-uid="C1.Win.Document.Util.C1DXTextLayout.GetCaretCoords*">GetCaretCoords Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXTextLayout_GetCaretCoords_" data-uid="C1.Win.Document.Util.C1DXTextLayout.GetCaretCoords*"></a>
<h4 id="C1_Win_Document_Util_C1DXTextLayout_GetCaretCoords_System_Int32_System_Boolean_" data-uid="C1.Win.Document.Util.C1DXTextLayout.GetCaretCoords(System.Int32,System.Boolean)">GetCaretCoords(int, bool)</h4>
<div class="markdown level1 summary"><p>Use this function to get the pixel location relative to the top-left of the layout box given
the text position and the logical side of the position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override C1CaretCoords GetCaretCoords(int textIndex, bool isTrailing)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function GetCaretCoords(textIndex As Integer, isTrailing As Boolean) As C1CaretCoords</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textIndex</span></td>
      <td><p>The text position used to get the pixel location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isTrailing</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">C1CaretCoords</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">C1TextLayout.GetCaretCoords(int, bool)</a></div>
</div>
