# C1.Win.FlexGrid.OwnerDrawCellEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_OwnerDrawCellEventArgs" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs" class="text-break">OwnerDrawCellEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides data for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.OwnerDrawCell.html">OwnerDrawCell</a> event.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">OwnerDrawCellEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OwnerDrawCellEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OwnerDrawCellEventArgs
    Inherits EventArgs</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td 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)">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.-ctor.html#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)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the OwnerDrawCellEventArgs class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Bounds" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Bounds">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Bounds.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Bounds">Bounds</a>
        </td>
        <td class="markdown level1 summary"><p>Get the rectangle where the cell will be painted (in client coordinates).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Col" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Col">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Col.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Col">Col</a>
        </td>
        <td class="markdown level1 summary"><p>Get the column index of the cell being painted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_ColorMode" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.ColorMode">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.ColorMode.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_ColorMode">ColorMode</a>
        </td>
        <td class="markdown level1 summary"><p>Drawing color mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Graphics" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Graphics">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Graphics.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Graphics">Graphics</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Graphics.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Graphics">Graphics</a> object used to draw the cell. Use this object to draw custom elements in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Handled" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Handled">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Handled.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Handled">Handled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the event has finished drawing the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Image" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Image">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Image.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image that will be displayed in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Measuring" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Measuring">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Measuring.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Measuring">Measuring</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines if the event was fired only to measure the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Row" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Row">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Row.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Get the row index of the cell being painted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Style" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Style">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Style.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or sets the <a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a> object used to paint the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_Text" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Text">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.Text.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text that will be displayed in the cell.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_DrawCell" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.DrawCell">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.DrawCell.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_DrawCell">DrawCell()</a>
        </td>
        <td class="markdown level1 summary"><p>Causes the grid to paint the whole cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_OwnerDrawCellEventArgs_DrawCell_C1_Win_FlexGrid_DrawCellFlags_" data-uid="C1.Win.FlexGrid.OwnerDrawCellEventArgs.DrawCell(C1.Win.FlexGrid.DrawCellFlags)">
          <a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.DrawCell.html#C1_Win_FlexGrid_OwnerDrawCellEventArgs_DrawCell_C1_Win_FlexGrid_DrawCellFlags_">DrawCell(DrawCellFlags)</a>
        </td>
        <td class="markdown level1 summary"><p>Causes the grid to paint parts of the cell (background, foreground, border, etc.)</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
