# GrapeCity.Documents.Excel.CellDecorationIcon.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_CellDecorationIcon__ctor_" data-uid="GrapeCity.Documents.Excel.CellDecorationIcon.#ctor*">CellDecorationIcon Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_CellDecorationIcon__ctor_" data-uid="GrapeCity.Documents.Excel.CellDecorationIcon.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_CellDecorationIcon__ctor_System_String_System_Int32_System_Int32_GrapeCity_Documents_Excel_IconPosition_" data-uid="GrapeCity.Documents.Excel.CellDecorationIcon.#ctor(System.String,System.Int32,System.Int32,GrapeCity.Documents.Excel.IconPosition)">CellDecorationIcon(string, int, int, IconPosition)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the CellDecorationIcon class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellDecorationIcon(string src, int width, int height, IconPosition position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(src As String, width As Integer, height As Integer, position As IconPosition)</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">src</span></td>
      <td><p>The icon src string.</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 icon width in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The icon height in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.IconPosition.html">IconPosition</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>The icon position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
