# C1.Win.Themes.TwoColorGradient.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Themes_TwoColorGradient__ctor_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor*">TwoColorGradient Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Themes_TwoColorGradient__ctor_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor*"></a>
<h4 id="C1_Win_Themes_TwoColorGradient__ctor" data-uid="C1.Win.Themes.TwoColorGradient.#ctor">TwoColorGradient()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the TwoColorGradient class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TwoColorGradient()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Win_Themes_TwoColorGradient__ctor_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor*"></a>
<h4 id="C1_Win_Themes_TwoColorGradient__ctor_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor(System.Drawing.Color,System.Drawing.Color)">TwoColorGradient(Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the TwoColorGradient class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TwoColorGradient(Color color1, Color color2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color1 As Color, color2 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">color1</span></td>
      <td><p>The first 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">color2</span></td>
      <td><p>The second gradient color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Themes_TwoColorGradient__ctor_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor*"></a>
<h4 id="C1_Win_Themes_TwoColorGradient__ctor_System_Drawing_Color_System_Drawing_Color_C1_Win_Themes_ThemeBlend_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor(System.Drawing.Color,System.Drawing.Color,C1.Win.Themes.ThemeBlend)">TwoColorGradient(Color, Color, ThemeBlend)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the TwoColorGradient class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TwoColorGradient(Color color1, Color color2, ThemeBlend blend)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color1 As Color, color2 As Color, blend As ThemeBlend)</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">color1</span></td>
      <td><p>The first 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">color2</span></td>
      <td><p>The second gradient color.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">ThemeBlend</span></td>
      <td><span class="parametername">blend</span></td>
      <td><p>Gradient color blend.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Themes_TwoColorGradient__ctor_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor*"></a>
<h4 id="C1_Win_Themes_TwoColorGradient__ctor_C1_Win_Themes_ThemeColorValue_C1_Win_Themes_ThemeColorValue_C1_Win_Themes_ThemeBlendValue_" data-uid="C1.Win.Themes.TwoColorGradient.#ctor(C1.Win.Themes.ThemeColorValue,C1.Win.Themes.ThemeColorValue,C1.Win.Themes.ThemeBlendValue)">TwoColorGradient(ThemeColorValue, ThemeColorValue, ThemeBlendValue)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the TwoColorGradient class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TwoColorGradient(ThemeColorValue color1, ThemeColorValue color2, ThemeBlendValue blend)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color1 As ThemeColorValue, color2 As ThemeColorValue, blend As ThemeBlendValue)</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">ThemeColorValue</span></td>
      <td><span class="parametername">color1</span></td>
      <td><p>The first gradient color.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">ThemeColorValue</span></td>
      <td><span class="parametername">color2</span></td>
      <td><p>The second gradient color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Themes.ThemeBlendValue.html">ThemeBlendValue</a></td>
      <td><span class="parametername">blend</span></td>
      <td><p>Gradient color blend.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
