# GrapeCity.Drawing.IDrawingContext.DrawIcon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_IDrawingContext_DrawIcon_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawIcon*">DrawIcon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_IDrawingContext_DrawIcon_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawIcon*"></a>
<h4 id="GrapeCity_Drawing_IDrawingContext_DrawIcon_GrapeCity_Spreadsheet_Drawing_BuiltInIcons_GrapeCity_Drawing_Rectangle_GrapeCity_Drawing_RectAlignment_GrapeCity_Spreadsheet_Imaging_Filters_Filter___" data-uid="GrapeCity.Drawing.IDrawingContext.DrawIcon(GrapeCity.Spreadsheet.Drawing.BuiltInIcons,GrapeCity.Drawing.Rectangle,GrapeCity.Drawing.RectAlignment,GrapeCity.Spreadsheet.Imaging.Filters.Filter[])">DrawIcon(BuiltInIcons, Rectangle, RectAlignment, Filter[])</h4>
<div class="markdown level1 summary"><p>Draws the built-in icon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void DrawIcon(BuiltInIcons builtInIcon, Rectangle rect, RectAlignment alignment, Filter[] filters)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub DrawIcon(builtInIcon As BuiltInIcons, rect As Rectangle, alignment As RectAlignment, filters As Filter())</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="GrapeCity.Spreadsheet.Drawing.BuiltInIcons.html">BuiltInIcons</a></td>
      <td><span class="parametername">builtInIcon</span></td>
      <td><p>The built-in icon to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p><a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure that specifies the boundary of the icon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Drawing.RectAlignment.html">RectAlignment</a></td>
      <td><span class="parametername">alignment</span></td>
      <td><p>Where the icon is placed. Use <a class="xref" href="GrapeCity.Drawing.RectAlignment.html#GrapeCity_Drawing_RectAlignment_Unspecified">Unspecified</a> to full-fill in the <code class="paramref">rect</code></p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Filter</span>[]</td>
      <td><span class="parametername">filters</span></td>
      <td><p>The array of <span class="xref">GrapeCity.Spreadsheet.Imaging.Filters.Filter</span>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
