# GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor*">GradientEffect Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor">GradientEffect()</h4>
<div class="markdown level1 summary"><p>Initializes the instance of <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.html">GradientEffect</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientEffect()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_GrapeCity_Win_Spread_InputMan_CellType_GradientStyle_GrapeCity_Win_Spread_InputMan_CellType_GradientDirection_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor(GrapeCity.Win.Spread.InputMan.CellType.GradientStyle,GrapeCity.Win.Spread.InputMan.CellType.GradientDirection,System.Drawing.Color,System.Drawing.Color)">GradientEffect(GradientStyle, GradientDirection, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes the instance of <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.html">GradientEffect</a> class with specifics value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GradientEffect(GradientStyle style, GradientDirection direction, Color startColor, Color endColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As GradientStyle, direction As GradientDirection, startColor As Color, endColor 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="GrapeCity.Win.Spread.InputMan.CellType.GradientStyle.html">GradientStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Indicates the style of gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.GradientDirection.html">GradientDirection</a></td>
      <td><span class="parametername">direction</span></td>
      <td><p>Indicates the direction of 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">startColor</span></td>
      <td><p>Indicates the color of gradient starting.</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">endColor</span></td>
      <td><p>Indicates the color of gradient ending.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GradientEffect__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GradientEffect.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">GradientEffect(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of this class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected GradientEffect(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>The 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>The context.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
