# FarPoint.Win.Spread.CellType.GradientHeaderRenderer.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor*">GradientHeaderRenderer Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">GradientHeaderRenderer(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new painter of the gradient header from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected GradientHeaderRenderer(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>Serialization information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>Streaming context</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor">GradientHeaderRenderer()</h4>
<div class="markdown level1 summary"><p>Creates a new renderer for a gradient header.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientHeaderRenderer()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_System_Drawing_Color_System_Drawing_Color_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode,System.Drawing.Color,System.Drawing.Color)">GradientHeaderRenderer(Color, Color, Color, Color, LinearGradientMode, Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates a new renderer for a gradient header with color and mode specified.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientHeaderRenderer(Color topColor, Color bottomColor, Color activeTopColor, Color activeBottomColor, LinearGradientMode mode, Color selTopColor, Color selBottomColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(topColor As Color, bottomColor As Color, activeTopColor As Color, activeBottomColor As Color, mode As LinearGradientMode, selTopColor As Color, selBottomColor 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">topColor</span></td>
      <td><p>Color at the top of the gradient</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">bottomColor</span></td>
      <td><p>Color at the bottom of the gradient</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">activeTopColor</span></td>
      <td><p>Color at the top when the header cell is active</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">activeBottomColor</span></td>
      <td><p>Color at the bottom when the header cell is active</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.lineargradientmode">LinearGradientMode</a></td>
      <td><span class="parametername">mode</span></td>
      <td><p>Mode of the linear gradient</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">selTopColor</span></td>
      <td><p>Color at the top of gradient when the column or row of header cell contains a selection</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">selBottomColor</span></td>
      <td><p>Color at the bottom of the gradient when the column or row of header cell contains a selection</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode)">GradientHeaderRenderer(Color, Color, Color, Color, LinearGradientMode)</h4>
<div class="markdown level1 summary"><p>Creates a new renderer for a gradient header with color and mode specified.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientHeaderRenderer(Color topColor, Color bottomColor, Color activeTopColor, Color activeBottomColor, LinearGradientMode mode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(topColor As Color, bottomColor As Color, activeTopColor As Color, activeBottomColor As Color, mode As LinearGradientMode)</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">topColor</span></td>
      <td><p>Color at the top of the gradient</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">bottomColor</span></td>
      <td><p>Color at the bottom of the gradient</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">activeTopColor</span></td>
      <td><p>Color at the top when the header cell is active</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">activeBottomColor</span></td>
      <td><p>Color at the bottom when the header cell is active</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.lineargradientmode">LinearGradientMode</a></td>
      <td><span class="parametername">mode</span></td>
      <td><p>Mode of the linear gradient</p>
</td>
    </tr>
  </tbody>
</table>
</div>
