# GrapeCity.Spreadsheet.GradientFillEffect.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_GradientFillEffect_Create_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_GradientFillEffect_Create_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_GradientFillEffect_Create_System_Double_System_Double_System_Double_System_Double_GrapeCity_Spreadsheet_Color_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create(System.Double,System.Double,System.Double,System.Double,GrapeCity.Spreadsheet.Color,GrapeCity.Spreadsheet.Color)">Create(double, double, double, double, Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates the path gradient fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientFillEffect Create(double top, double left, double bottom, double right, Color color1, Color color2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(top As Double, left As Double, bottom As Double, right As Double, color1 As Color, color2 As Color) As GradientFillEffect</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.double">double</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1).
For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1).
For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1).
For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">right</span></td>
      <td><p>Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1).
For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">color1</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the color of the first gradient stop, constituting this gradient fill effect.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">color2</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the color of the second gradient stop, constituting this gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a> value represents the gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_GradientFillEffect_Create_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_GradientFillEffect_Create_System_Double_System_Double_System_Double_System_Double_GrapeCity_Spreadsheet_GradientStop___" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create(System.Double,System.Double,System.Double,System.Double,GrapeCity.Spreadsheet.GradientStop[])">Create(double, double, double, double, GradientStop[])</h4>
<div class="markdown level1 summary"><p>Creates the path gradient fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientFillEffect Create(double top, double left, double bottom, double right, GradientStop[] gradientStops)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(top As Double, left As Double, bottom As Double, right As Double, gradientStops As GradientStop()) As GradientFillEffect</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.double">double</a></td>
      <td><span class="parametername">top</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">left</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">bottom</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">right</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientStop.html">GradientStop</a> array indicates the gradient stops.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a> value represents the gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_GradientFillEffect_Create_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_GradientFillEffect_Create_System_Double_GrapeCity_Spreadsheet_GradientStop___" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create(System.Double,GrapeCity.Spreadsheet.GradientStop[])">Create(double, GradientStop[])</h4>
<div class="markdown level1 summary"><p>Creates the path gradient fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientFillEffect Create(double degree, GradientStop[] gradientStops)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(degree As Double, gradientStops As GradientStop()) As GradientFillEffect</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.double">double</a></td>
      <td><span class="parametername">degree</span></td>
      <td><p>Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1).
For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientStop.html">GradientStop</a> array indicates the gradient stops.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a> value represents the gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_GradientFillEffect_Create_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_GradientFillEffect_Create_System_Double_GrapeCity_Spreadsheet_Color_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.GradientFillEffect.Create(System.Double,GrapeCity.Spreadsheet.Color,GrapeCity.Spreadsheet.Color)">Create(double, Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates the linear gradient fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientFillEffect Create(double degree, Color color1, Color color2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(degree As Double, color1 As Color, color2 As Color) As GradientFillEffect</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.double">double</a></td>
      <td><span class="parametername">degree</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value indicates the angle of the linear gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">color1</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the color of the first gradient stop, constituting this gradient fill effect.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">color2</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value indicates the color of the second gradient stop, constituting this gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.GradientFillEffect.html">GradientFillEffect</a> value represents the gradient fill effect.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
