# C1.C1Preview.RenderRichText

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderRichText" data-uid="C1.C1Preview.RenderRichText" class="text-break">RenderRichText Class
</h1>
  <div class="markdown level0 summary"><p>Represents an <b>RTF</b> text in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.</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.C1Preview.RenderObject.html">RenderObject</a></div>
    <div class="level2"><span class="xref">RenderRichText</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.C1Preview.IStyleOwner.html">IStyleOwner</a></div>
    <div><a class="xref" href="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_RenderRichText_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderRichText : RenderObject, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderRichText
    Inherits RenderObject
    Implements IStyleOwner, IDocumentLocation</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_C1Preview_RenderRichText__ctor" data-uid="C1.C1Preview.RenderRichText.#ctor">
          <a class="xref" href="C1.C1Preview.RenderRichText.-ctor.html#C1_C1Preview_RenderRichText__ctor">RenderRichText()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText__ctor_System_String_" data-uid="C1.C1Preview.RenderRichText.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.RenderRichText.-ctor.html#C1_C1Preview_RenderRichText__ctor_System_String_">RenderRichText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> class,
using the specified RTF string and style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText__ctor_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderRichText.#ctor(System.String,C1.C1Preview.Style)">
          <a class="xref" href="C1.C1Preview.RenderRichText.-ctor.html#C1_C1Preview_RenderRichText__ctor_System_String_C1_C1Preview_Style_">RenderRichText(string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> class,
using the specified RTF string and style.</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_C1Preview_RenderRichText_DetectUrls" data-uid="C1.C1Preview.RenderRichText.DetectUrls">
          <a class="xref" href="C1.C1Preview.RenderRichText.DetectUrls.html#C1_C1Preview_RenderRichText_DetectUrls">DetectUrls</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether or not the current <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a>
will automatically format Uniform Resource Locators (URLs)
when those are found in text assigned to the <a class="xref" href="C1.C1Preview.RenderRichText.Rtf.html#C1_C1Preview_RenderRichText_Rtf">Rtf</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_HasRtf" data-uid="C1.C1Preview.RenderRichText.HasRtf">
          <a class="xref" href="C1.C1Preview.RenderRichText.HasRtf.html#C1_C1Preview_RenderRichText_HasRtf">HasRtf</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.RenderRichText.Rtf.html#C1_C1Preview_RenderRichText_Rtf">Rtf</a> property
has been initialized and has non-zero length.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_Rtf" data-uid="C1.C1Preview.RenderRichText.Rtf">
          <a class="xref" href="C1.C1Preview.RenderRichText.Rtf.html#C1_C1Preview_RenderRichText_Rtf">Rtf</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <b>RTF</b>-formatted text represented by the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_TextLength" data-uid="C1.C1Preview.RenderRichText.TextLength">
          <a class="xref" href="C1.C1Preview.RenderRichText.TextLength.html#C1_C1Preview_RenderRichText_TextLength">TextLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the &quot;real&quot; length of the text assigned to the <a class="xref" href="C1.C1Preview.RenderRichText.Rtf.html#C1_C1Preview_RenderRichText_Rtf">Rtf</a> property.
Only the actual text characters are counted, <b>RTF</b> tags are not included in the count.</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_C1Preview_RenderRichText_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderRichText.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.RenderRichText.AssignFrom.html#C1_C1Preview_RenderRichText_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
Calls the base <a class="xref" href="C1.C1Preview.RenderObject.AssignFrom.html#C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a> method.
If <code class="paramref">source</code> is a <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a>, also copies <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a>-specific properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_CreateSame" data-uid="C1.C1Preview.RenderRichText.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderRichText.CreateSame.html#C1_C1Preview_RenderRichText_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_GetApproximateCountOfFragmentsToProcess" data-uid="C1.C1Preview.RenderRichText.GetApproximateCountOfFragmentsToProcess">
          <a class="xref" href="C1.C1Preview.RenderRichText.GetApproximateCountOfFragmentsToProcess.html#C1_C1Preview_RenderRichText_GetApproximateCountOfFragmentsToProcess">GetApproximateCountOfFragmentsToProcess()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_GetDefaultFlags" data-uid="C1.C1Preview.RenderRichText.GetDefaultFlags">
          <a class="xref" href="C1.C1Preview.RenderRichText.GetDefaultFlags.html#C1_C1Preview_RenderRichText_GetDefaultFlags">GetDefaultFlags()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_GetDefaultSplitVertBehavior" data-uid="C1.C1Preview.RenderRichText.GetDefaultSplitVertBehavior">
          <a class="xref" href="C1.C1Preview.RenderRichText.GetDefaultSplitVertBehavior.html#C1_C1Preview_RenderRichText_GetDefaultSplitVertBehavior">GetDefaultSplitVertBehavior()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_GetDefaultWidth" data-uid="C1.C1Preview.RenderRichText.GetDefaultWidth">
          <a class="xref" href="C1.C1Preview.RenderRichText.GetDefaultWidth.html#C1_C1Preview_RenderRichText_GetDefaultWidth">GetDefaultWidth()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_Load_System_IO_Stream_" data-uid="C1.C1Preview.RenderRichText.Load(System.IO.Stream)">
          <a class="xref" href="C1.C1Preview.RenderRichText.Load.html#C1_C1Preview_RenderRichText_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the content of the current <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> from a stream
containing <b>RTF</b>-formatted data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_Load_System_IO_Stream_System_Windows_Forms_RichTextBoxStreamType_" data-uid="C1.C1Preview.RenderRichText.Load(System.IO.Stream,System.Windows.Forms.RichTextBoxStreamType)">
          <a class="xref" href="C1.C1Preview.RenderRichText.Load.html#C1_C1Preview_RenderRichText_Load_System_IO_Stream_System_Windows_Forms_RichTextBoxStreamType_">Load(Stream, RichTextBoxStreamType)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the content of the current <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> from a stream
containing data in a specified format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_Load_System_String_" data-uid="C1.C1Preview.RenderRichText.Load(System.String)">
          <a class="xref" href="C1.C1Preview.RenderRichText.Load.html#C1_C1Preview_RenderRichText_Load_System_String_">Load(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the content of the current <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> from a disk file
containing <b>RTF</b>-formatted data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_Load_System_String_System_Windows_Forms_RichTextBoxStreamType_" data-uid="C1.C1Preview.RenderRichText.Load(System.String,System.Windows.Forms.RichTextBoxStreamType)">
          <a class="xref" href="C1.C1Preview.RenderRichText.Load.html#C1_C1Preview_RenderRichText_Load_System_String_System_Windows_Forms_RichTextBoxStreamType_">Load(string, RichTextBoxStreamType)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the content of the current <a class="xref" href="C1.C1Preview.RenderRichText.html">RenderRichText</a> from a disk file
containing data in a specified format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRichText_SetWidth_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRichText.SetWidth(C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.RenderRichText.SetWidth.html#C1_C1Preview_RenderRichText_SetWidth_C1_C1Preview_Unit_">SetWidth(Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
