# C1.WPF.RichTextBox.Documents.C1HtmlElement.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1HtmlElement__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1HtmlElement.#ctor*">C1HtmlElement Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1HtmlElement__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1HtmlElement.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1HtmlElement__ctor_System_String_" data-uid="C1.WPF.RichTextBox.Documents.C1HtmlElement.#ctor(System.String)">C1HtmlElement(string)</h4>
<div class="markdown level1 summary"><p>Create a new instance of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlElement.html">C1HtmlElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1HtmlElement(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name 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">name</span></td>
      <td><p>The tag name of this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlElement.html">C1HtmlElement</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1HtmlElement__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1HtmlElement.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1HtmlElement__ctor_System_String_System_Collections_Generic_IEnumerable_System_Collections_Generic_KeyValuePair_System_String_System_String___" data-uid="C1.WPF.RichTextBox.Documents.C1HtmlElement.#ctor(System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">C1HtmlElement(string, IEnumerable&lt;KeyValuePair&lt;string, string&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlElement.html">C1HtmlElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1HtmlElement(string name, IEnumerable&lt;KeyValuePair&lt;string, string&gt;&gt; attributes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, attributes As IEnumerable(Of KeyValuePair(Of String, 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">name</span></td>
      <td><p>The tag name of this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlElement.html">C1HtmlElement</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;&gt;</td>
      <td><span class="parametername">attributes</span></td>
      <td><p>The attributes of this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlElement.html">C1HtmlElement</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
