# C1.Framework.C1FontIcon.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_C1FontIcon__ctor_" data-uid="C1.Framework.C1FontIcon.#ctor*">C1FontIcon Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_C1FontIcon__ctor_" data-uid="C1.Framework.C1FontIcon.#ctor*"></a>
<h4 id="C1_Framework_C1FontIcon__ctor" data-uid="C1.Framework.C1FontIcon.#ctor">C1FontIcon()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1FontIcon.html">C1FontIcon</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 C1FontIcon()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Framework_C1FontIcon__ctor_" data-uid="C1.Framework.C1FontIcon.#ctor*"></a>
<h4 id="C1_Framework_C1FontIcon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_String_System_Drawing_Font_" data-uid="C1.Framework.C1FontIcon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color,System.String,System.Drawing.Font)">C1FontIcon(string, Size, Color, string, Font)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1FontIcon.html">C1FontIcon</a> class with specified key, size and color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1FontIcon(string key, Size size, Color color, string text, Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As String, size As Size, color As Color, 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">key</span></td>
      <td><p>String used as a key to retrieve the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The icon size.</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">color</span></td>
      <td><p>Indicates the icon color.</p>
</td>
    </tr>
    <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>The text to show.</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 icon font.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_C1FontIcon__ctor_" data-uid="C1.Framework.C1FontIcon.#ctor*"></a>
<h4 id="C1_Framework_C1FontIcon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_String_System_Drawing_Font_System_Drawing_Color_" data-uid="C1.Framework.C1FontIcon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color,System.String,System.Drawing.Font,System.Drawing.Color)">C1FontIcon(string, Size, Color, string, Font, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1FontIcon.html">C1FontIcon</a> class with specified key, size and color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1FontIcon(string key, Size size, Color color, string text, Font font, Color backColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As String, size As Size, color As Color, text As String, font As Font, backColor 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">key</span></td>
      <td><p>String used as a key to retrieve the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The icon size.</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">color</span></td>
      <td><p>Indicates the icon color.</p>
</td>
    </tr>
    <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>The text to show.</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 icon font.</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">backColor</span></td>
      <td><p>The icon's background color.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
