# FarPoint.Win.Spread.CellType.GradientHeaderRenderer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer" class="text-break">GradientHeaderRenderer Class
</h1>
  <div class="markdown level0 summary"><p>Represents the painter of a gradient header.</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="FarPoint.Win.Spread.CellType.ColumnHeaderRenderer.html">ColumnHeaderRenderer</a></div>
    <div class="level2"><span class="xref">GradientHeaderRenderer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IRenderer.html">IRenderer</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IHeaderImages.html">IHeaderImages</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IWordWrapSupport.html">IWordWrapSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IShrinkToFitSupport.html">IShrinkToFitSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IPdfSupport.html">IPdfSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.CellType.html">FarPoint.Win.Spread.CellType</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GradientHeaderRenderer : ColumnHeaderRenderer, IRenderer, IHeaderImages, IWordWrapSupport, IShrinkToFitSupport, IPdfSupport, IDisposable, ISerializeSupport, ISerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GradientHeaderRenderer
    Inherits ColumnHeaderRenderer
    Implements IRenderer, IHeaderImages, IWordWrapSupport, IShrinkToFitSupport, IPdfSupport, IDisposable, ISerializeSupport, ISerializable</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="FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.-ctor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor">GradientHeaderRenderer()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new renderer for a gradient header.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.-ctor.html#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)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new renderer for a gradient header with color and mode specified.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.-ctor.html#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)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new renderer for a gradient header with color and mode specified.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.-ctor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GradientHeaderRenderer(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new painter of the gradient header from serialization.</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="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ActiveBottomColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ActiveBottomColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ActiveBottomColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ActiveBottomColor">ActiveBottomColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the bottom of the gradient when the header cell is active.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ActiveTopColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ActiveTopColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ActiveTopColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ActiveTopColor">ActiveTopColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the top of the gradient when the header cell is active.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_BottomColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.BottomColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.BottomColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_BottomColor">BottomColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the bottom of the gradient.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_Mode" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.Mode">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.Mode.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_Mode">Mode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the mode of the linear gradient.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_SelectionBottomColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.SelectionBottomColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.SelectionBottomColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_SelectionBottomColor">SelectionBottomColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the bottom of the gradient when the column or row of header cell contains a selection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_SelectionTopColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.SelectionTopColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.SelectionTopColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_SelectionTopColor">SelectionTopColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the top of the gradient when the column or row of header cell contains a selection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_TopColor" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.TopColor">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.TopColor.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_TopColor">TopColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the top of the gradient.</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="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_DrawHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_Spread_Appearance_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.DrawHeader(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,System.Boolean,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.TextOrientation,System.Boolean,System.Int32,System.Drawing.Color,System.Drawing.Color,System.Drawing.Image,System.Drawing.Image,System.Boolean,System.Drawing.Text.HotkeyPrefix,FarPoint.Win.Spread.Appearance)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.DrawHeader.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_DrawHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_Spread_Appearance_">DrawHeader(Graphics, Rectangle, Rectangle, Color, Color, Color, Color, LinearGradientMode, Color, Font, HorizontalAlignment, VerticalAlignment, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, Appearance)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the gradient header cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_DrawHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_Spread_Appearance_System_Single_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.DrawHeader(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Drawing2D.LinearGradientMode,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,System.Boolean,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.TextOrientation,System.Boolean,System.Int32,System.Drawing.Color,System.Drawing.Color,System.Drawing.Image,System.Drawing.Image,System.Boolean,System.Drawing.Text.HotkeyPrefix,FarPoint.Win.Spread.Appearance,System.Single)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.DrawHeader.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_DrawHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Drawing2D_LinearGradientMode_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_Spread_Appearance_System_Single_">DrawHeader(Graphics, Rectangle, Rectangle, Color, Color, Color, Color, LinearGradientMode, Color, Font, HorizontalAlignment, VerticalAlignment, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, Appearance, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the gradient header cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_GetAppearance" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.GetAppearance">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.GetAppearance.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_GetAppearance">GetAppearance()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the appearance attributes for the current header cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintBackground_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintBackground(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintBackground.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintBackground_System_Drawing_Graphics_System_Drawing_Rectangle_">PaintBackground(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the background of the gradient header cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintCell_System_Drawing_Graphics_System_Drawing_Rectangle_FarPoint_Win_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintCell(System.Drawing.Graphics,System.Drawing.Rectangle,FarPoint.Win.Spread.Appearance,System.Object,System.Boolean,System.Boolean,System.Single)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintCell.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintCell_System_Drawing_Graphics_System_Drawing_Rectangle_FarPoint_Win_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_">PaintCell(Graphics, Rectangle, Appearance, object, bool, bool, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the column header cell when not in edit mode to the specified graphics interface
with the specified appearance settings.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_VisualStyles_System_Boolean_System_Boolean_FarPoint_Win_Spread_Appearance_System_Double_" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintHeader(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,System.Boolean,System.Boolean,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.TextOrientation,System.Boolean,System.Int32,System.Drawing.Color,System.Drawing.Color,System.Drawing.Image,System.Drawing.Image,System.Boolean,System.Drawing.Text.HotkeyPrefix,FarPoint.Win.VisualStyles,System.Boolean,System.Boolean,FarPoint.Win.Spread.Appearance,System.Double)">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.PaintHeader.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_PaintHeader_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Boolean_System_Boolean_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_TextOrientation_System_Boolean_System_Int32_System_Drawing_Color_System_Drawing_Color_System_Drawing_Image_System_Drawing_Image_System_Boolean_System_Drawing_Text_HotkeyPrefix_FarPoint_Win_VisualStyles_System_Boolean_System_Boolean_FarPoint_Win_Spread_Appearance_System_Double_">PaintHeader(Graphics, Rectangle, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, bool, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, VisualStyles, bool, bool, Appearance, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the column header cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ToString" data-uid="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ToString">
          <a class="xref" href="FarPoint.Win.Spread.CellType.GradientHeaderRenderer.ToString.html#FarPoint_Win_Spread_CellType_GradientHeaderRenderer_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
