# C1.Framework.Html.HtmlElement.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*">HtmlElement Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*"></a>
<h4 id="C1_Framework_Html_HtmlElement__ctor_C1_Framework_Style_System_String_System_Boolean_System_Int32_" data-uid="C1.Framework.Html.HtmlElement.#ctor(C1.Framework.Style,System.String,System.Boolean,System.Int32)">HtmlElement(Style, string, bool, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Html.HtmlElement.html">HtmlElement</a> class with the specified htm content and style options.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlElement(Style style, string html, bool rtl, int width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As Style, html As String, rtl As Boolean, width As Integer)</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="C1.Framework.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.Framework.Style.html">Style</a> object to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">html</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value with html content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>True to use right-to-left flow direction.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value of the width of html content.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*"></a>
<h4 id="C1_Framework_Html_HtmlElement__ctor_C1_Framework_Style_System_String_System_Boolean_" data-uid="C1.Framework.Html.HtmlElement.#ctor(C1.Framework.Style,System.String,System.Boolean)">HtmlElement(Style, string, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Html.HtmlElement.html">HtmlElement</a> class with the specified htm content and style options.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlElement(Style style, string html, bool rtl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As Style, html As String, rtl As Boolean)</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="C1.Framework.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.Framework.Style.html">Style</a> object to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">html</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value with html content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>True to use right-to-left flow direction.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*"></a>
<h4 id="C1_Framework_Html_HtmlElement__ctor_System_String_System_Boolean_" data-uid="C1.Framework.Html.HtmlElement.#ctor(System.String,System.Boolean)">HtmlElement(string, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Html.HtmlElement.html">HtmlElement</a> class with the specified htm content.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlElement(string html, bool rtl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(html As String, rtl As Boolean)</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">html</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value with html content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>True to use right-to-left flow direction.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*"></a>
<h4 id="C1_Framework_Html_HtmlElement__ctor_C1_Framework_Style_System_Boolean_" data-uid="C1.Framework.Html.HtmlElement.#ctor(C1.Framework.Style,System.Boolean)">HtmlElement(Style, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Html.HtmlElement.html">HtmlElement</a> class with the specified style options.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlElement(Style style, bool rtl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As Style, rtl As Boolean)</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="C1.Framework.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.Framework.Style.html">Style</a> object to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>True to use right-to-left flow direction.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Html_HtmlElement__ctor_" data-uid="C1.Framework.Html.HtmlElement.#ctor*"></a>
<h4 id="C1_Framework_Html_HtmlElement__ctor_System_Boolean_" data-uid="C1.Framework.Html.HtmlElement.#ctor(System.Boolean)">HtmlElement(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Html.HtmlElement.html">HtmlElement</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 HtmlElement(bool rtl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rtl As Boolean)</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.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>True to use right-to-left flow direction.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
