# C1.C1Preview.RenderTextFragmentBase.GetCharRangeRects

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRects_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRects*">GetCharRangeRects Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRects_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRects*"></a>
<h4 id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRects_System_Int32_System_Int32_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRects(System.Int32,System.Int32)">GetCharRangeRects(int, int)</h4>
<div class="markdown level1 summary"><p>Gets an array of bounding rectangles for a range of characters
(in the returned array, each line in the specified range
is represented by a separate <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structure).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangleD[] GetCharRangeRects(int startCharIndex, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetCharRangeRects(startCharIndex As Integer, length As Integer) As RectangleD()</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">startCharIndex</span></td>
      <td><p>The index of the first character in the range in the current fragment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The number of characters in the range.
(If a number greater than the number of characters in the fragment is specified, no error is generated
and all characters are included in the range.)</p>
</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><a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a>[]</td>
      <td><p>An array of <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structures, each structure
corresponding to a line of text.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
