# C1.C1Preview.ParagraphText

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_ParagraphText" data-uid="C1.C1Preview.ParagraphText" class="text-break">ParagraphText Class
</h1>
  <div class="markdown level0 summary"><p>Represents a run of text, rendered using a single style,
in the <a class="xref" href="C1.C1Preview.RenderParagraph.Content.html#C1_C1Preview_RenderParagraph_Content">Content</a> of a <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</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.ParagraphObject.html">ParagraphObject</a></div>
    <div class="level2"><span class="xref">ParagraphText</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="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</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_ParagraphText_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ParagraphText : ParagraphObject, IStyleOwner, ICloneable, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ParagraphText
    Inherits ParagraphObject
    Implements IStyleOwner, ICloneable, 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_ParagraphText__ctor" data-uid="C1.C1Preview.ParagraphText.#ctor">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor">ParagraphText()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_">ParagraphText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the <a class="xref" href="C1.C1Preview.Style.html">Style</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,C1.C1Preview.Style)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_Style_">ParagraphText(string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the <a class="xref" href="C1.C1Preview.Style.html">Style</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,C1.C1Preview.TextPositionEnum)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_TextPositionEnum_">ParagraphText(string, TextPositionEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the text position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_">ParagraphText(string, Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font,C1.C1Preview.TextPositionEnum)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_C1_C1Preview_TextPositionEnum_">ParagraphText(string, Font, TextPositionEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the font and text position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Windows_Media_Color_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font,System.Windows.Media.Color)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Windows_Media_Color_">ParagraphText(string, Font, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the font and text color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Windows_Media_Color_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font,System.Windows.Media.Color,C1.C1Preview.TextPositionEnum)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Windows_Media_Color_C1_C1Preview_TextPositionEnum_">ParagraphText(string, Font, Color, TextPositionEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the font, text color and position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Windows_Media_Color_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Windows.Media.Color)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Windows_Media_Color_">ParagraphText(string, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the text color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText__ctor_System_String_System_Windows_Media_Color_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Windows.Media.Color,C1.C1Preview.TextPositionEnum)">
          <a class="xref" href="C1.C1Preview.ParagraphText.-ctor.html#C1_C1Preview_ParagraphText__ctor_System_String_System_Windows_Media_Color_C1_C1Preview_TextPositionEnum_">ParagraphText(string, Color, TextPositionEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class,
assigning the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property,
and specifying the text color and position.</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_ParagraphText_Text" data-uid="C1.C1Preview.ParagraphText.Text">
          <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text of the current <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a>.</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_ParagraphText_AssignFrom_C1_C1Preview_ParagraphObject_" data-uid="C1.C1Preview.ParagraphText.AssignFrom(C1.C1Preview.ParagraphObject)">
          <a class="xref" href="C1.C1Preview.ParagraphText.AssignFrom.html#C1_C1Preview_ParagraphText_AssignFrom_C1_C1Preview_ParagraphObject_">AssignFrom(ParagraphObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.ParagraphObject.html">ParagraphObject</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText_CreateSame" data-uid="C1.C1Preview.ParagraphText.CreateSame">
          <a class="xref" href="C1.C1Preview.ParagraphText.CreateSame.html#C1_C1Preview_ParagraphText_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText_GetLength" data-uid="C1.C1Preview.ParagraphText.GetLength">
          <a class="xref" href="C1.C1Preview.ParagraphText.GetLength.html#C1_C1Preview_ParagraphText_GetLength">GetLength()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the length of this ParagraphText object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ParagraphText_ResolveCalculatedValues" data-uid="C1.C1Preview.ParagraphText.ResolveCalculatedValues">
          <a class="xref" href="C1.C1Preview.ParagraphText.ResolveCalculatedValues.html#C1_C1Preview_ParagraphText_ResolveCalculatedValues">ResolveCalculatedValues()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.C1Preview.ParagraphObject.html">ParagraphObject</a></div>
      <div><a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a></div>
  </div>

</div>
