# C1.WPF.Word.Objects.RtfString

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Word_Objects_RtfString" data-uid="C1.WPF.Word.Objects.RtfString" class="text-break">RtfString Class
</h1>
  <div class="markdown level0 summary"><p>The Word/RTF text string.</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="C1.WPF.Word.Objects.RtfObject.html">RtfObject</a></div>
    <div class="level2"><span class="xref">RtfString</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="C1.WPF.Word.IParagraphContent.html">IParagraphContent</a></div>
    <div><a class="xref" href="C1.WPF.Word.IContent.html">IContent</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Word.Objects.html">C1.WPF.Word.Objects</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Word.4.6.2.dll</h6>
  <h5 id="C1_WPF_Word_Objects_RtfString_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RtfString : RtfObject, ICloneable, IParagraphContent, IContent</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="C1_WPF_Word_Objects_RtfString__ctor_System_String_" data-uid="C1.WPF.Word.Objects.RtfString.#ctor(System.String)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.-ctor.html#C1_WPF_Word_Objects_RtfString__ctor_System_String_">RtfString(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Create Word/RTF string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString__ctor_System_String_C1_WPF_Word_Font_" data-uid="C1.WPF.Word.Objects.RtfString.#ctor(System.String,C1.WPF.Word.Font)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.-ctor.html#C1_WPF_Word_Objects_RtfString__ctor_System_String_C1_WPF_Word_Font_">RtfString(string, Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Create Word/RTF string with character formatting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString__ctor_System_String_C1_WPF_Word_Font_C1_WPF_Word_RtfUnderlineStyle_" data-uid="C1.WPF.Word.Objects.RtfString.#ctor(System.String,C1.WPF.Word.Font,C1.WPF.Word.RtfUnderlineStyle)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.-ctor.html#C1_WPF_Word_Objects_RtfString__ctor_System_String_C1_WPF_Word_Font_C1_WPF_Word_RtfUnderlineStyle_">RtfString(string, Font, RtfUnderlineStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Create RTF string with character formatting.</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="C1_WPF_Word_Objects_RtfString_BackColor" data-uid="C1.WPF.Word.Objects.RtfString.BackColor">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.BackColor.html#C1_WPF_Word_Objects_RtfString_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets background (text) color value for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_BorderColor" data-uid="C1.WPF.Word.Objects.RtfString.BorderColor">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.BorderColor.html#C1_WPF_Word_Objects_RtfString_BorderColor">BorderColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets border color for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_BorderStyle" data-uid="C1.WPF.Word.Objects.RtfString.BorderStyle">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.BorderStyle.html#C1_WPF_Word_Objects_RtfString_BorderStyle">BorderStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets border style for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_BorderWidth" data-uid="C1.WPF.Word.Objects.RtfString.BorderWidth">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.BorderWidth.html#C1_WPF_Word_Objects_RtfString_BorderWidth">BorderWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets border width for this text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Culture" data-uid="C1.WPF.Word.Objects.RtfString.Culture">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Culture.html#C1_WPF_Word_Objects_RtfString_Culture">Culture</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets culture information (language) for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Expand" data-uid="C1.WPF.Word.Objects.RtfString.Expand">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Expand.html#C1_WPF_Word_Objects_RtfString_Expand">Expand</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets expand (+) or packed (-) value for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Font" data-uid="C1.WPF.Word.Objects.RtfString.Font">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Font.html#C1_WPF_Word_Objects_RtfString_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_ForeColor" data-uid="C1.WPF.Word.Objects.RtfString.ForeColor">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.ForeColor.html#C1_WPF_Word_Objects_RtfString_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets foreground (text) color value for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsEastAsia" data-uid="C1.WPF.Word.Objects.RtfString.IsEastAsia">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsEastAsia.html#C1_WPF_Word_Objects_RtfString_IsEastAsia">IsEastAsia</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets specifies that is east asia text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsInvisible" data-uid="C1.WPF.Word.Objects.RtfString.IsInvisible">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsInvisible.html#C1_WPF_Word_Objects_RtfString_IsInvisible">IsInvisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets invisible for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsOutline" data-uid="C1.WPF.Word.Objects.RtfString.IsOutline">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsOutline.html#C1_WPF_Word_Objects_RtfString_IsOutline">IsOutline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets outline font for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Subscript" data-uid="C1.WPF.Word.Objects.RtfString.Subscript">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Subscript.html#C1_WPF_Word_Objects_RtfString_Subscript">Subscript</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets subscript value for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Superscript" data-uid="C1.WPF.Word.Objects.RtfString.Superscript">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Superscript.html#C1_WPF_Word_Objects_RtfString_Superscript">Superscript</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets superscript value for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Text" data-uid="C1.WPF.Word.Objects.RtfString.Text">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Text.html#C1_WPF_Word_Objects_RtfString_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text for this string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_Underline" data-uid="C1.WPF.Word.Objects.RtfString.Underline">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.Underline.html#C1_WPF_Word_Objects_RtfString_Underline">Underline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets underline type for this string.</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="C1_WPF_Word_Objects_RtfString_IsCJK_System_String_" data-uid="C1.WPF.Word.Objects.RtfString.IsCJK(System.String)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsCJK.html#C1_WPF_Word_Objects_RtfString_IsCJK_System_String_">IsCJK(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Is CJK (Chinese, Japanese, and Korean) of the text string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsEqualAttributes_C1_WPF_Word_Objects_RtfString_" data-uid="C1.WPF.Word.Objects.RtfString.IsEqualAttributes(C1.WPF.Word.Objects.RtfString)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsEqualAttributes.html#C1_WPF_Word_Objects_RtfString_IsEqualAttributes_C1_WPF_Word_Objects_RtfString_">IsEqualAttributes(RtfString)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets true if this attributes equal with other string attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsPunctuation_System_String_" data-uid="C1.WPF.Word.Objects.RtfString.IsPunctuation(System.String)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsPunctuation.html#C1_WPF_Word_Objects_RtfString_IsPunctuation_System_String_">IsPunctuation(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Is punctuation or white space of the text string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsRightToLeft_System_String_" data-uid="C1.WPF.Word.Objects.RtfString.IsRightToLeft(System.String)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsRightToLeft.html#C1_WPF_Word_Objects_RtfString_IsRightToLeft_System_String_">IsRightToLeft(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Is right to left text (such as&quot; Arabic or Hebrew).</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_IsUnicode_System_String_" data-uid="C1.WPF.Word.Objects.RtfString.IsUnicode(System.String)">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.IsUnicode.html#C1_WPF_Word_Objects_RtfString_IsUnicode_System_String_">IsUnicode(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Is Unicode of the text string.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Word_Objects_RtfString_op_Implicit_C1_WPF_Word_Objects_RtfString__System_String" data-uid="C1.WPF.Word.Objects.RtfString.op_Implicit(C1.WPF.Word.Objects.RtfString)~System.String">
          <a class="xref" href="C1.WPF.Word.Objects.RtfString.op_Implicit.html#C1_WPF_Word_Objects_RtfString_op_Implicit_C1_WPF_Word_Objects_RtfString__System_String">implicit operator string(RtfString)</a>
        </td>
        <td class="markdown level1 summary"><p>Convert implicitly to string.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
