# GrapeCity.Documents.Excel.IRange.Characters

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IRange_Characters_" data-uid="GrapeCity.Documents.Excel.IRange.Characters*">Characters Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IRange_Characters_" data-uid="GrapeCity.Documents.Excel.IRange.Characters*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_Characters_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Excel.IRange.Characters(System.Int32,System.Int32)">Characters(int, int)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.ITextRun.html">ITextRun</a> object that represents a range of characters within the cell text, this method can only be called when the value of cell is a string, or else <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a> is thrown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITextRun Characters(int startIndex, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Characters(startIndex As Integer, length As Integer) As ITextRun</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">startIndex</span></td>
      <td><p>the start index of characters in whole cell text.</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 length of characters.</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="GrapeCity.Documents.Excel.ITextRun.html">ITextRun</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Excel.ITextRun.html">ITextRun</a> object that represents the range of characters.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
