# GrapeCity.Documents.Text.TextRun

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Text_TextRun" data-uid="GrapeCity.Documents.Text.TextRun" class="text-break">TextRun Class
</h1>
  <div class="markdown level0 summary"><p>Represents a discrete section of formatted or unformatted text.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Text.Inline.html">Inline</a></div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Text.FormattableInline.html">FormattableInline</a></div>
    <div class="level3"><span class="xref">TextRun</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Text.html">GrapeCity.Documents.Text</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Text_TextRun_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextRun : FormattableInline</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextRun
    Inherits FormattableInline</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun__ctor_System_Int32___System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Text.TextRun.#ctor(System.Int32[],System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.-ctor.html#GrapeCity_Documents_Text_TextRun__ctor_System_Int32___System_Int32_System_Int32_">TextRun(int[], int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.TextRun.html">TextRun</a> based on a subrange of an array of UTF-32 characters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun__ctor_System_Int32___System_Int32_System_Int32_GrapeCity_Documents_Text_TextFormat_" data-uid="GrapeCity.Documents.Text.TextRun.#ctor(System.Int32[],System.Int32,System.Int32,GrapeCity.Documents.Text.TextFormat)">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.-ctor.html#GrapeCity_Documents_Text_TextRun__ctor_System_Int32___System_Int32_System_Int32_GrapeCity_Documents_Text_TextFormat_">TextRun(int[], int, int, TextFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.TextRun.html">TextRun</a> based on a subrange of an array of UTF-32 characters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun__ctor_System_String_" data-uid="GrapeCity.Documents.Text.TextRun.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.-ctor.html#GrapeCity_Documents_Text_TextRun__ctor_System_String_">TextRun(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.TextRun.html">TextRun</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun__ctor_System_String_GrapeCity_Documents_Text_TextFormat_" data-uid="GrapeCity.Documents.Text.TextRun.#ctor(System.String,GrapeCity.Documents.Text.TextFormat)">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.-ctor.html#GrapeCity_Documents_Text_TextRun__ctor_System_String_GrapeCity_Documents_Text_TextFormat_">TextRun(string, TextFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.TextRun.html">TextRun</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun_Text" data-uid="GrapeCity.Documents.Text.TextRun.Text">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.Text.html#GrapeCity_Documents_Text_TextRun_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text of the section.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun_GetCharCount" data-uid="GrapeCity.Documents.Text.TextRun.GetCharCount">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.GetCharCount.html#GrapeCity_Documents_Text_TextRun_GetCharCount">GetCharCount()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the string of UTF-16 characters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRun_GetChars" data-uid="GrapeCity.Documents.Text.TextRun.GetChars">
          <a class="xref" href="GrapeCity.Documents.Text.TextRun.GetChars.html#GrapeCity_Documents_Text_TextRun_GetChars">GetChars()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the string of UTF-16 characters.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
