# C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage*">DrawCellImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage(System.Drawing.Graphics,System.Int32,System.Int32,System.Drawing.Rectangle)">DrawCellImage(Graphics, int, int, Rectangle)</h4>
<div class="markdown level1 summary"><p>Draws a grid cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void DrawCellImage(Graphics g, int row, int col, Rectangle rcBounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub DrawCellImage(g As Graphics, row As Integer, col As Integer, rcBounds As Rectangle)</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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> object where the cell will be drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Index of the cell's row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>Index of the cell's column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rcBounds</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> that defines the cell position.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is for internal use. It allows inherited classes to customize the grid appearance.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle_C1_Win_FlexGrid_DrawColorMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawCellImage(System.Drawing.Graphics,System.Int32,System.Int32,System.Drawing.Rectangle,C1.Win.FlexGrid.DrawColorMode)">DrawCellImage(Graphics, int, int, Rectangle, DrawColorMode)</h4>
<div class="markdown level1 summary"><p>Draws a grid cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void DrawCellImage(Graphics g, int row, int col, Rectangle rcBounds, DrawColorMode colorMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub DrawCellImage(g As Graphics, row As Integer, col As Integer, rcBounds As Rectangle, colorMode As DrawColorMode)</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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> object where the cell will be drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Index of the cell's row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>Index of the cell's column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rcBounds</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> that defines the cell position.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.DrawColorMode.html">DrawColorMode</a></td>
      <td><span class="parametername">colorMode</span></td>
      <td><p>Drawing color mode.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DrawCellImage_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle_C1_Win_FlexGrid_DrawColorMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is for internal use. It allows inherited classes to customize the grid appearance.</p>
</div>
</div>
