# C1.Win.FlexGrid.OwnerDrawCellEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_OwnerDrawCellEventArgs__ctor_" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.#ctor*">OwnerDrawCellEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_OwnerDrawCellEventArgs__ctor_" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_OwnerDrawCellEventArgs__ctor_C1_Win_FlexGrid_C1FlexGridBase_System_Drawing_Graphics_System_Int32_System_Int32_C1_Win_FlexGrid_CellStyle_System_Drawing_Rectangle_System_String_System_Drawing_Image_C1_Win_FlexGrid_DrawColorMode_" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.#ctor(C1.Win.FlexGrid.C1FlexGridBase,System.Drawing.Graphics,System.Int32,System.Int32,C1.Win.FlexGrid.CellStyle,System.Drawing.Rectangle,System.String,System.Drawing.Image,C1.Win.FlexGrid.DrawColorMode)">OwnerDrawCellEventArgs(C1FlexGridBase, Graphics, int, int, CellStyle, Rectangle, string, Image, DrawColorMode)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the OwnerDrawCellEventArgs class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OwnerDrawCellEventArgs(C1FlexGridBase view, Graphics graphics, int row, int col, CellStyle style, Rectangle bounds, string text, Image img, DrawColorMode colorMode = DrawColorMode.Color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As C1FlexGridBase, graphics As Graphics, row As Integer, col As Integer, style As CellStyle, bounds As Rectangle, text As String, img As Image, Optional colorMode As DrawColorMode = DrawColorMode.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="C1.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a> control that contains the cell being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Graphics.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Graphics">Graphics</a> object where the cell will be painted.</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>The row index of the cell being painted.</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>The column index of the cell being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a> that will be used to paint the cell.</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">bounds</span></td>
      <td><p>The bounds of the cell being painted.</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 that will be displayed in the cell.</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">img</span></td>
      <td><p>The image that will be displayed in the cell.</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>
</div>
