# C1.Framework.C1BitmapIcon.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_C1BitmapIcon__ctor_" data-uid="C1.Framework.C1BitmapIcon.#ctor*">C1BitmapIcon Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_C1BitmapIcon__ctor_" data-uid="C1.Framework.C1BitmapIcon.#ctor*"></a>
<h4 id="C1_Framework_C1BitmapIcon__ctor" data-uid="C1.Framework.C1BitmapIcon.#ctor">C1BitmapIcon()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1BitmapIcon.html">C1BitmapIcon</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 C1BitmapIcon()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Framework_C1BitmapIcon__ctor_" data-uid="C1.Framework.C1BitmapIcon.#ctor*"></a>
<h4 id="C1_Framework_C1BitmapIcon__ctor_System_String_" data-uid="C1.Framework.C1BitmapIcon.#ctor(System.String)">C1BitmapIcon(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1BitmapIcon.html">C1BitmapIcon</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 C1BitmapIcon(string key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key 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">key</span></td>
      <td><p>String used as a key to retrieve the image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_C1BitmapIcon__ctor_" data-uid="C1.Framework.C1BitmapIcon.#ctor*"></a>
<h4 id="C1_Framework_C1BitmapIcon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_Drawing_Image_" data-uid="C1.Framework.C1BitmapIcon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color,System.Drawing.Image)">C1BitmapIcon(string, Size, Color, Image)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1BitmapIcon.html">C1BitmapIcon</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 C1BitmapIcon(string key, Size size, Color color, Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As String, size As Size, color As Color, image As Image)</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.drawing.image">Image</a></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image to show.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_C1BitmapIcon__ctor_" data-uid="C1.Framework.C1BitmapIcon.#ctor*"></a>
<h4 id="C1_Framework_C1BitmapIcon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_Object_System_Int32_" data-uid="C1.Framework.C1BitmapIcon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color,System.Object,System.Int32)">C1BitmapIcon(string, Size, Color, object, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1BitmapIcon.html">C1BitmapIcon</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 C1BitmapIcon(string key, Size size, Color color, object imageList, int imageIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As String, size As Size, color As Color, imageList As Object, imageIndex 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="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.object">object</a></td>
      <td><span class="parametername">imageList</span></td>
      <td><p>The image list which should be used to retrieve the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">imageIndex</span></td>
      <td><p>The index of image in the image list.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
