# GrapeCity.Spreadsheet.Drawing.IGradientStops.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IGradientStops_Insert_" data-uid="GrapeCity.Spreadsheet.Drawing.IGradientStops.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IGradientStops_Insert_" data-uid="GrapeCity.Spreadsheet.Drawing.IGradientStops.Insert*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IGradientStops_Insert_System_Int32_System_Double_System_Double_System_Int32_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IGradientStops.Insert(System.Int32,System.Double,System.Double,System.Int32,System.Double)">Insert(int, double, double, int, double)</h4>
<div class="markdown level1 summary"><p>Adds a stop to a gradient, and specifies the brightness, as well as the transparency, of the color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Insert(int rgb, double position, double transparency = 0, int index = -1, double brightness = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Insert(rgb As Integer, position As Double, Optional transparency As Double = 0, Optional index As Integer = -1, Optional brightness As Double = 0)</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.int32">int</a></td>
      <td><span class="parametername">rgb</span></td>
      <td><p>Specifies the color at the gradient stop.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>Specifies the position of the stop within the gradient expressed as a percent.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">transparency</span></td>
      <td><p>Specifies the opacity of color at the gradient stop.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The index number of the stop.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">brightness</span></td>
      <td><p>Specifies the brightness of the color at the gradient stop.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
