# GrapeCity.Documents.Drawing.LinearGradientBrush.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor*">LinearGradientBrush Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor*"></a>
<h4 id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor(System.Drawing.Color,System.Drawing.Color)">LinearGradientBrush(Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Drawing.LinearGradientBrush.html">LinearGradientBrush</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 LinearGradientBrush(Color startColor, Color endColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">startColor</span></td>
      <td><p>The start gradient color.</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>The end gradient color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor*"></a>
<h4 id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_System_Drawing_Color_System_Drawing_PointF_System_Drawing_Color_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor(System.Drawing.Color,System.Drawing.PointF,System.Drawing.Color,System.Drawing.PointF)">LinearGradientBrush(Color, PointF, Color, PointF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Drawing.LinearGradientBrush.html">LinearGradientBrush</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 LinearGradientBrush(Color startColor, PointF startPoint, Color endColor, PointF endPoint)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(startColor As Color, startPoint As PointF, endColor As Color, endPoint As PointF)</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.drawing.color">Color</a></td>
      <td><span class="parametername">startColor</span></td>
      <td><p>The start gradient color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">startPoint</span></td>
      <td><p>The start gradient point.</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>The end gradient color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">endPoint</span></td>
      <td><p>The end gradient point.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor*"></a>
<h4 id="GrapeCity_Documents_Drawing_LinearGradientBrush__ctor_GrapeCity_Documents_Drawing_LinearGradientBrush_" data-uid="GrapeCity.Documents.Drawing.LinearGradientBrush.#ctor(GrapeCity.Documents.Drawing.LinearGradientBrush)">LinearGradientBrush(LinearGradientBrush)</h4>
<div class="markdown level1 summary"><p>Creates a copy of a <a class="xref" href="GrapeCity.Documents.Drawing.LinearGradientBrush.html">LinearGradientBrush</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LinearGradientBrush(LinearGradientBrush source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As LinearGradientBrush)</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.Documents.Drawing.LinearGradientBrush.html">LinearGradientBrush</a></td>
      <td><span class="parametername">source</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
