# C1.Win.FlexGrid.GridRendererOffice2007.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_GridRendererOffice2007__ctor_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor*">GridRendererOffice2007 Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_GridRendererOffice2007__ctor_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor*"></a>
<h4 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)">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)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GridRendererOffice2007.html">GridRendererOffice2007</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridRendererOffice2007(Color clrHighlight, Color clrTopLeftBorder, Color clrTopLeft, Color clrImg1, Color clrImg2, Color clrCol1, Color clrCol2, Color clrColBorder, Color clrColSel1, Color clrColSel2, Color clrSelBorder, Color clrColHot1, Color clrColHot2, Color clrHotBorder, Color clrColSelHot1, Color clrColSelHot2, Color clrSelHotBorder, Color clrRow, Color clrRowBorder, Color clrRowSel, Color clrRowSelBorder, Color clrRowHot, Color clrRowHotBorder, Color clrRowSelHot, Color clrRowSelHotBorder)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(clrHighlight As Color, clrTopLeftBorder As Color, clrTopLeft As Color, clrImg1 As Color, clrImg2 As Color, clrCol1 As Color, clrCol2 As Color, clrColBorder As Color, clrColSel1 As Color, clrColSel2 As Color, clrSelBorder As Color, clrColHot1 As Color, clrColHot2 As Color, clrHotBorder As Color, clrColSelHot1 As Color, clrColSelHot2 As Color, clrSelHotBorder As Color, clrRow As Color, clrRowBorder As Color, clrRowSel As Color, clrRowSelBorder As Color, clrRowHot As Color, clrRowHotBorder As Color, clrRowSelHot As Color, clrRowSelHotBorder As 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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrHighlight</span></td>
      <td><p>Background color for highlighted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrTopLeftBorder</span></td>
      <td><p>Color of the border around the top left fixed cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrTopLeft</span></td>
      <td><p>Color of the background for the top left fixed cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrImg1</span></td>
      <td><p>First color of the gradient background for the image in the top left fixed cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrImg2</span></td>
      <td><p>Second color of the gradient background for the image in the top left fixed cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrCol1</span></td>
      <td><p>First color of the gradient background for column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrCol2</span></td>
      <td><p>Second color of the gradient background for column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColBorder</span></td>
      <td><p>Color of the border around column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColSel1</span></td>
      <td><p>First color of the gradient background for selected column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColSel2</span></td>
      <td><p>Second color of the gradient background for selected column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrSelBorder</span></td>
      <td><p>Color of the border around selected column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColHot1</span></td>
      <td><p>First color of the gradient background for hot column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColHot2</span></td>
      <td><p>Second color of the gradient background for hot column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrHotBorder</span></td>
      <td><p>Color of the border around hot column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColSelHot1</span></td>
      <td><p>First color of the gradient background for selected hot column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrColSelHot2</span></td>
      <td><p>Second color of the gradient background for selected hot column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrSelHotBorder</span></td>
      <td><p>Color of the border around hot selected column headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRow</span></td>
      <td><p>Color of the background for row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowBorder</span></td>
      <td><p>Color of the border around row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowSel</span></td>
      <td><p>Color of the background for selected row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowSelBorder</span></td>
      <td><p>Color of the border around selected row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowHot</span></td>
      <td><p>Color of the background for hot row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowHotBorder</span></td>
      <td><p>Color of the border around hot row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowSelHot</span></td>
      <td><p>Color of the background for hot selected row headers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">clrRowSelHotBorder</span></td>
      <td><p>Color of the border around selected hot row headers.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_GridRendererOffice2007__ctor_" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_GridRendererOffice2007__ctor_System_Drawing_Color___" data-uid="C1.Win.FlexGrid.GridRendererOffice2007.#ctor(System.Drawing.Color[])">GridRendererOffice2007(Color[])</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridRendererOffice2007(Color[] p)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(p As 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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a>[]</td>
      <td><span class="parametername">p</span></td>
      <td><p>Array with 25 colors to be used as a palette.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
