# C1.C1Preview.ParagraphText.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*">ParagraphText Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor" data-uid="C1.C1Preview.ParagraphText.#ctor">ParagraphText()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ParagraphText.html">ParagraphText</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,C1.C1Preview.Style)">ParagraphText(string, Style)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, style As Style)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use
(the <a class="xref" href="C1.C1Preview.Style.AssignNonInheritedFrom.html#C1_C1Preview_Style_AssignNonInheritedFrom_C1_C1Preview_Style_">AssignNonInheritedFrom(Style)</a> method
is used to copy the specified style to the current object's <a class="xref" href="C1.C1Preview.RenderObject.Style.html#C1_C1Preview_RenderObject_Style">Style</a>).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String)">ParagraphText(string)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font)">ParagraphText(string, Font)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, font As Font)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Color_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Color)">ParagraphText(string, Color)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Color textColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, textColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,C1.C1Preview.TextPositionEnum)">ParagraphText(string, TextPositionEnum)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, TextPositionEnum textPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, textPosition As TextPositionEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TextPositionEnum.html">TextPositionEnum</a></td>
      <td><span class="parametername">textPosition</span></td>
      <td><p>The text position to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Drawing_Color_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font,System.Drawing.Color)">ParagraphText(string, Font, Color)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Font font, Color textColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, font As Font, textColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 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)">ParagraphText(string, Font, TextPositionEnum)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Font font, TextPositionEnum textPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, font As Font, textPosition As TextPositionEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TextPositionEnum.html">TextPositionEnum</a></td>
      <td><span class="parametername">textPosition</span></td>
      <td><p>The text position to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Color_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Color,C1.C1Preview.TextPositionEnum)">ParagraphText(string, Color, TextPositionEnum)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Color textColor, TextPositionEnum textPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, textColor As Color, textPosition As TextPositionEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TextPositionEnum.html">TextPositionEnum</a></td>
      <td><span class="parametername">textPosition</span></td>
      <td><p>The text position to use.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_ParagraphText__ctor_" data-uid="C1.C1Preview.ParagraphText.#ctor*"></a>
<h4 id="C1_C1Preview_ParagraphText__ctor_System_String_System_Drawing_Font_System_Drawing_Color_C1_C1Preview_TextPositionEnum_" data-uid="C1.C1Preview.ParagraphText.#ctor(System.String,System.Drawing.Font,System.Drawing.Color,C1.C1Preview.TextPositionEnum)">ParagraphText(string, Font, Color, TextPositionEnum)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphText(string text, Font font, Color textColor, TextPositionEnum textPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, font As Font, textColor As Color, textPosition As TextPositionEnum)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.ParagraphText.Text.html#C1_C1Preview_ParagraphText_Text">Text</a> property of the current object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TextPositionEnum.html">TextPositionEnum</a></td>
      <td><span class="parametername">textPosition</span></td>
      <td><p>The text position to use.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
