# GrapeCity.Spreadsheet.RichText

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_RichText" data-uid="GrapeCity.Spreadsheet.RichText" class="text-break">RichText Class
</h1>
  <div class="markdown level0 summary"><p>Represents the rich 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"><span class="xref">RichText</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iconvertible">IConvertible</a></div>
    <div><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.ICloneable-1.html">ICloneable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_RichText_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class RichText : IEquatable&lt;RichText&gt;, IConvertible, ICloneable&lt;RichText&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class RichText
    Implements IEquatable(Of RichText), IConvertible, ICloneable(Of RichText)</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_Spreadsheet_RichText__ctor_System_String_" data-uid="GrapeCity.Spreadsheet.RichText.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.-ctor.html#GrapeCity_Spreadsheet_RichText__ctor_System_String_">RichText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> class.</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_Spreadsheet_RichText_Length" data-uid="GrapeCity.Spreadsheet.RichText.Length">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Length.html#GrapeCity_Spreadsheet_RichText_Length">Length</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the length of text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_RunCount" data-uid="GrapeCity.Spreadsheet.RichText.RunCount">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.RunCount.html#GrapeCity_Spreadsheet_RichText_RunCount">RunCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of runs in the rich text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Text" data-uid="GrapeCity.Spreadsheet.RichText.Text">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Text.html#GrapeCity_Spreadsheet_RichText_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value represents the plain text of this rich text.</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_Spreadsheet_RichText_Append_System_String_" data-uid="GrapeCity.Spreadsheet.RichText.Append(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Append.html#GrapeCity_Spreadsheet_RichText_Append_System_String_">Append(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends the text at the end of this rich text using the last run formatting.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Append_System_String_GrapeCity_Spreadsheet_Font_" data-uid="GrapeCity.Spreadsheet.RichText.Append(System.String,GrapeCity.Spreadsheet.Font)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Append.html#GrapeCity_Spreadsheet_RichText_Append_System_String_GrapeCity_Spreadsheet_Font_">Append(string, Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends the text run at the end of this rich text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_ClearFormat" data-uid="GrapeCity.Spreadsheet.RichText.ClearFormat">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.ClearFormat.html#GrapeCity_Spreadsheet_RichText_ClearFormat">ClearFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears format of all text runs.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_ClearFormat_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.RichText.ClearFormat(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.ClearFormat.html#GrapeCity_Spreadsheet_RichText_ClearFormat_System_Int32_System_Int32_">ClearFormat(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the format of the specified text run.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Clone" data-uid="GrapeCity.Spreadsheet.RichText.Clone">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Clone.html#GrapeCity_Spreadsheet_RichText_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> object that is a copy of the current <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Equals_GrapeCity_Spreadsheet_RichText_" data-uid="GrapeCity.Spreadsheet.RichText.Equals(GrapeCity.Spreadsheet.RichText)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Equals.html#GrapeCity_Spreadsheet_RichText_Equals_GrapeCity_Spreadsheet_RichText_">Equals(RichText)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> object is equal to the current <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Equals_System_Object_" data-uid="GrapeCity.Spreadsheet.RichText.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Equals.html#GrapeCity_Spreadsheet_RichText_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Format_GrapeCity_Spreadsheet_Font_" data-uid="GrapeCity.Spreadsheet.RichText.Format(GrapeCity.Spreadsheet.Font)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Format.html#GrapeCity_Spreadsheet_RichText_Format_GrapeCity_Spreadsheet_Font_">Format(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats the whole text with the specified font.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Format_System_Int32_System_Int32_GrapeCity_Spreadsheet_Font_" data-uid="GrapeCity.Spreadsheet.RichText.Format(System.Int32,System.Int32,GrapeCity.Spreadsheet.Font)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Format.html#GrapeCity_Spreadsheet_RichText_Format_System_Int32_System_Int32_GrapeCity_Spreadsheet_Font_">Format(int, int, Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats the specified text run with the specified font.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_GetFormat_System_Int32_" data-uid="GrapeCity.Spreadsheet.RichText.GetFormat(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.GetFormat.html#GrapeCity_Spreadsheet_RichText_GetFormat_System_Int32_">GetFormat(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the font at the specified position.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_GetHashCode" data-uid="GrapeCity.Spreadsheet.RichText.GetHashCode">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.GetHashCode.html#GrapeCity_Spreadsheet_RichText_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_GetRun_System_Int32_System_Int32__System_Int32__GrapeCity_Spreadsheet_Font__" data-uid="GrapeCity.Spreadsheet.RichText.GetRun(System.Int32,System.Int32@,System.Int32@,GrapeCity.Spreadsheet.Font@)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.GetRun.html#GrapeCity_Spreadsheet_RichText_GetRun_System_Int32_System_Int32__System_Int32__GrapeCity_Spreadsheet_Font__">GetRun(int, out int, out int, out Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the attributes of the specified run.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Overwrite_System_Int32_System_Int32_System_String_" data-uid="GrapeCity.Spreadsheet.RichText.Overwrite(System.Int32,System.Int32,System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Overwrite.html#GrapeCity_Spreadsheet_RichText_Overwrite_System_Int32_System_Int32_System_String_">Overwrite(int, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Overwrites the specified range of this rich text by a new text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_Parse_System_String_" data-uid="GrapeCity.Spreadsheet.RichText.Parse(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.Parse.html#GrapeCity_Spreadsheet_RichText_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parse <a class="xref" href="GrapeCity.Spreadsheet.RichText.html">RichText</a> object from xml source, represent by string <code class="paramref">text</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_RichText_ToString" data-uid="GrapeCity.Spreadsheet.RichText.ToString">
          <a class="xref" href="GrapeCity.Spreadsheet.RichText.ToString.html#GrapeCity_Spreadsheet_RichText_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
