# C1.C1Preview.RenderParagraph

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderParagraph" data-uid="C1.C1Preview.RenderParagraph" class="text-break">RenderParagraph Class
</h1>
  <div class="markdown level0 summary"><p>Represents a paragraph in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
Paragraphs can contain inline text and images, possibly rendered using different styles.
The content of a paragraph is accessible via the <a class="xref" href="C1.C1Preview.RenderParagraph.Content.html#C1_C1Preview_RenderParagraph_Content">Content</a> property.</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"><a class="xref" href="C1.C1Preview.RenderTextBase.html">RenderTextBase</a></div>
    <div class="level3"><span class="xref">RenderParagraph</span></div>
      <div class="level4"><a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a></div>
      <div class="level4"><a class="xref" href="C1.C1Preview.RenderVerticalParagraph.html">RenderVerticalParagraph</a></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_RenderParagraph_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderParagraph : RenderTextBase, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderParagraph
    Inherits RenderTextBase
    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_RenderParagraph__ctor" data-uid="C1.C1Preview.RenderParagraph.#ctor">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor">RenderParagraph()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.RenderParagraph.#ctor(C1.C1Preview.AlignHorzEnum)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_C1_C1Preview_AlignHorzEnum_">RenderParagraph(AlignHorzEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying the horizontal alignment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderParagraph.#ctor(C1.C1Preview.Style)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_C1_C1Preview_Style_">RenderParagraph(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying a <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_" data-uid="C1.C1Preview.RenderParagraph.#ctor(System.Drawing.Font)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_">RenderParagraph(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> to use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.RenderParagraph.#ctor(System.Drawing.Font,C1.C1Preview.AlignHorzEnum)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_C1_C1Preview_AlignHorzEnum_">RenderParagraph(Font, AlignHorzEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying the default font and horizontal alignment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_System_Windows_Media_Color_" data-uid="C1.C1Preview.RenderParagraph.#ctor(System.Drawing.Font,System.Windows.Media.Color)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_System_Windows_Media_Color_">RenderParagraph(Font, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying the default font and text color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_System_Windows_Media_Color_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.RenderParagraph.#ctor(System.Drawing.Font,System.Windows.Media.Color,C1.C1Preview.AlignHorzEnum)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.-ctor.html#C1_C1Preview_RenderParagraph__ctor_System_Drawing_Font_System_Windows_Media_Color_C1_C1Preview_AlignHorzEnum_">RenderParagraph(Font, Color, AlignHorzEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> class,
specifying the default font, text color and horizontal alignment.</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_RenderParagraph_Content" data-uid="C1.C1Preview.RenderParagraph.Content">
          <a class="xref" href="C1.C1Preview.RenderParagraph.Content.html#C1_C1Preview_RenderParagraph_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.ParagraphObjectCollection.html">ParagraphObjectCollection</a> representing
the content (text and images) of the current paragraph.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph_HasContent" data-uid="C1.C1Preview.RenderParagraph.HasContent">
          <a class="xref" href="C1.C1Preview.RenderParagraph.HasContent.html#C1_C1Preview_RenderParagraph_HasContent">HasContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.RenderParagraph.Content.html#C1_C1Preview_RenderParagraph_Content">Content</a> collection
has been initialized and contains one or more elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph_HasText" data-uid="C1.C1Preview.RenderParagraph.HasText">
          <a class="xref" href="C1.C1Preview.RenderParagraph.HasText.html#C1_C1Preview_RenderParagraph_HasText">HasText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.RenderParagraph.Content.html#C1_C1Preview_RenderParagraph_Content">Content</a> collection
has been initialized and contains one or more elements.</p>
<p>
This property is an alias for the <a class="xref" href="C1.C1Preview.RenderParagraph.HasContent.html#C1_C1Preview_RenderParagraph_HasContent">HasContent</a> property.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph_Text" data-uid="C1.C1Preview.RenderParagraph.Text">
          <a class="xref" href="C1.C1Preview.RenderParagraph.Text.html#C1_C1Preview_RenderParagraph_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text of the current paragraph.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph_TextLength" data-uid="C1.C1Preview.RenderParagraph.TextLength">
          <a class="xref" href="C1.C1Preview.RenderParagraph.TextLength.html#C1_C1Preview_RenderParagraph_TextLength">TextLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the count of characters in the current paragraph.
Each non-text object (such as <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a>)
counts as one character.</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_RenderParagraph_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderParagraph.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.RenderParagraph.AssignFrom.html#C1_C1Preview_RenderParagraph_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.RenderTextBase.AssignFrom.html#C1_C1Preview_RenderTextBase_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.RenderParagraph.html">RenderParagraph</a>, also copies <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a>-specific properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderParagraph_CreateSame" data-uid="C1.C1Preview.RenderParagraph.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderParagraph.CreateSame.html#C1_C1Preview_RenderParagraph_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderParagraph.html">RenderParagraph</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
