# C1.Win.FlexGrid.C1FlexGridRenderer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_C1FlexGridRenderer" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer" class="text-break">C1FlexGridRenderer Class
</h1>
  <div class="markdown level0 summary"><p>Represents an abstract base class for custom grid renderers.</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"><span class="xref">C1FlexGridRenderer</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_C1FlexGridRenderer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1FlexGridRenderer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1FlexGridRenderer</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_C1FlexGridRenderer_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>To create custom grid renderers, inherit from this class, override the appropriate
virtual methods and properties, and assign an instance of your class to the grid's
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Renderer.html#C1_Win_FlexGrid_C1FlexGridBase_Renderer">Renderer</a> property.</p>
</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_C1FlexGridRenderer__ctor" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.#ctor">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.-ctor.html#C1_Win_FlexGrid_C1FlexGridRenderer__ctor">C1FlexGridRenderer()</a>
        </td>
        <td class="markdown level1 summary"></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_C1FlexGridRenderer_HeaderForeColor" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.HeaderForeColor">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.HeaderForeColor.html#C1_Win_FlexGrid_C1FlexGridRenderer_HeaderForeColor">HeaderForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the foreground color of header cells in the normal state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_C1FlexGridRenderer_TracksMouse" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.TracksMouse">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.TracksMouse.html#C1_Win_FlexGrid_C1FlexGridRenderer_TracksMouse">TracksMouse</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this renderer renders hot cells
differently than normal cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_C1FlexGridRenderer_TracksSelection" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.TracksSelection">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.TracksSelection.html#C1_Win_FlexGrid_C1FlexGridRenderer_TracksSelection">TracksSelection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this renderer tracks the selection to paint
highlighted column and row headers.</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_C1FlexGridRenderer_GetBackgroundBrush_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_System_Drawing_Rectangle_" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.GetBackgroundBrush(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.C1FlexGridRenderer.CellType,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.GetBackgroundBrush.html#C1_Win_FlexGrid_C1FlexGridRenderer_GetBackgroundBrush_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_System_Drawing_Rectangle_">GetBackgroundBrush(C1FlexGridBase, CellType, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a> object used to paint the cell background for a specific cell type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_C1FlexGridRenderer_GetBorderPen_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.GetBorderPen(C1.Win.FlexGrid.C1FlexGridRenderer.CellType)">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.GetBorderPen.html#C1_Win_FlexGrid_C1FlexGridRenderer_GetBorderPen_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_">GetBorderPen(CellType)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pen">Pen</a> object used to paint the cell borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_C1FlexGridRenderer_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.OnDrawCell(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.OwnerDrawCellEventArgs)">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.OnDrawCell.html#C1_Win_FlexGrid_C1FlexGridRenderer_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_">OnDrawCell(C1FlexGridBase, OwnerDrawCellEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws a grid cell of any type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_C1FlexGridRenderer_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_" data-uid="C1.Win.FlexGrid.C1FlexGridRenderer.OnDrawCell(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.OwnerDrawCellEventArgs,C1.Win.FlexGrid.C1FlexGridRenderer.CellType)">
          <a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.OnDrawCell.html#C1_Win_FlexGrid_C1FlexGridRenderer_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_">OnDrawCell(C1FlexGridBase, OwnerDrawCellEventArgs, CellType)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws a single grid cell of a specific type.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
