# C1.C1Preview.RenderTextFragmentBase.GetCharRangeRegion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRegion_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRegion*">GetCharRangeRegion Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRegion_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRegion*"></a>
<h4 id="C1_C1Preview_RenderTextFragmentBase_GetCharRangeRegion_System_Int32_System_Int32_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetCharRangeRegion(System.Int32,System.Int32)">GetCharRangeRegion(int, int)</h4>
<div class="markdown level1 summary"><p>Gets a bounding <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.region">Region</a> for a range of characters.
The region is relative to the top left corner of the fragment's inner area.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Region GetCharRangeRegion(int startCharIndex, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetCharRangeRegion(startCharIndex As Integer, length As Integer) As Region</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.</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="https://learn.microsoft.com/dotnet/api/system.drawing.region">Region</a></td>
      <td><p>The bounding region for the specified range, or <b>null</b> if the range is invalid.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
