# C1.Win.FlexGrid.GridRendererOffice2007

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_GridRendererOffice2007" data-uid="C1.Win.FlexGrid.GridRendererOffice2007" class="text-break">GridRendererOffice2007 Class
</h1>
  <div class="markdown level0 summary"><p>Represents the base abstract class for Office2007 style 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"><a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.html">C1FlexGridRenderer</a></div>
    <div class="level2"><span class="xref">GridRendererOffice2007</span></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007Black.html">GridRendererOffice2007Black</a></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007Blue.html">GridRendererOffice2007Blue</a></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007Silver.html">GridRendererOffice2007Silver</a></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2010Black.html">GridRendererOffice2010Black</a></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2010Blue.html">GridRendererOffice2010Blue</a></div>
      <div class="level3"><a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2010Silver.html">GridRendererOffice2010Silver</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></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.4.8.dll</h6>
  <h5 id="C1_Win_FlexGrid_GridRendererOffice2007_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GridRendererOffice2007 : C1FlexGridRenderer, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GridRendererOffice2007
    Inherits C1FlexGridRenderer
    Implements IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_GridRendererOffice2007_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The easiest way to create a new high-quality renderer is to derive from
this class and provide a constructor that initializes the 25 colors that
define the renderer.</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_GridRendererOffice2007__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.-ctor.html#C1_Win_FlexGrid_GridRendererOffice2007__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_">GridRendererOffice2007(Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.html">GridRendererOffice2007</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007__ctor_System_Drawing_Color___" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor(System.Drawing.Color[])">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.-ctor.html#C1_Win_FlexGrid_GridRendererOffice2007__ctor_System_Drawing_Color___">GridRendererOffice2007(Color[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.html">GridRendererOffice2007</a> using
a specified color palette.</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_GridRendererOffice2007_Highlight" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.Highlight">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.Highlight.html#C1_Win_FlexGrid_GridRendererOffice2007_Highlight">Highlight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color used to paint the background of highlighted cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_TracksMouse" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.TracksMouse">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.TracksMouse.html#C1_Win_FlexGrid_GridRendererOffice2007_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_GridRendererOffice2007_TracksSelection" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.TracksSelection">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.TracksSelection.html#C1_Win_FlexGrid_GridRendererOffice2007_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_GridRendererOffice2007_Dispose" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.Dispose">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.Dispose.html#C1_Win_FlexGrid_GridRendererOffice2007_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_Dispose_System_Boolean_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.Dispose.html#C1_Win_FlexGrid_GridRendererOffice2007_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases unmanaged and - optionally - managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_Finalize" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.Finalize">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.Finalize.html#C1_Win_FlexGrid_GridRendererOffice2007_Finalize">~GridRendererOffice2007()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes an instance of the <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.html">GridRendererOffice2007</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_GetBackgroundBrush_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_System_Drawing_Rectangle_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.GetBackgroundBrush(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.C1FlexGridRenderer.CellType,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.GetBackgroundBrush.html#C1_Win_FlexGrid_GridRendererOffice2007_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 the background brush for a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_GetBorderPen_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.GetBorderPen(C1.Win.FlexGrid.C1FlexGridRenderer.CellType)">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.GetBorderPen.html#C1_Win_FlexGrid_GridRendererOffice2007_GetBorderPen_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_">GetBorderPen(CellType)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a pen used to paint the cell borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_GridRendererOffice2007_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.OnDrawCell(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.OwnerDrawCellEventArgs,C1.Win.FlexGrid.C1FlexGridRenderer.CellType)">
          <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.OnDrawCell.html#C1_Win_FlexGrid_GridRendererOffice2007_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>
