# FarPoint.Web.Chart.GradientFill.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Chart_GradientFill__ctor_" data-uid="FarPoint.Web.Chart.GradientFill.#ctor*">GradientFill Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Chart_GradientFill__ctor_" data-uid="FarPoint.Web.Chart.GradientFill.#ctor*"></a>
<h4 id="FarPoint_Web_Chart_GradientFill__ctor_System_Drawing_Color_System_Drawing_Color_" data-uid="FarPoint.Web.Chart.GradientFill.#ctor(System.Drawing.Color,System.Drawing.Color)">GradientFill(Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates a new gradient fill with the specified colors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientFill(Color color0, Color color1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color0 As Color, color1 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><span class="xref">Color</span></td>
      <td><span class="parametername">color0</span></td>
      <td><p>Start color of the gradient</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">color1</span></td>
      <td><p>End color of the gradient</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Chart_GradientFill__ctor_" data-uid="FarPoint.Web.Chart.GradientFill.#ctor*"></a>
<h4 id="FarPoint_Web_Chart_GradientFill__ctor_System_Drawing_Color_System_Drawing_Color_FarPoint_Web_Chart_GradientStyle_" data-uid="FarPoint.Web.Chart.GradientFill.#ctor(System.Drawing.Color,System.Drawing.Color,FarPoint.Web.Chart.GradientStyle)">GradientFill(Color, Color, GradientStyle)</h4>
<div class="markdown level1 summary"><p>Creates a new gradient fill with the specified colors
and the specified style of gradient.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientFill(Color color0, Color color1, GradientStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color0 As Color, color1 As Color, style As GradientStyle)</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><span class="xref">Color</span></td>
      <td><span class="parametername">color0</span></td>
      <td><p>Start color of the gradient</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">color1</span></td>
      <td><p>End color of the gradient</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Chart.GradientStyle.html">GradientStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Style of gradient</p>
</td>
    </tr>
  </tbody>
</table>
</div>
