# C1.Framework.Drawing.Gdi.GradientBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_GradientBrush" data-uid="C1.Framework.Drawing.Gdi.GradientBrush" class="text-break">GradientBrush Class
</h1>
  <div class="markdown level0 summary"><p>Represents the brush to be used to fill the gradient shape.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.Drawing.Gdi.GdiObject.html">GdiObject</a></div>
    <div class="level3"><a class="xref" href="C1.Framework.Drawing.Gdi.Brush.html">Brush</a></div>
    <div class="level4"><span class="xref">GradientBrush</span></div>
      <div class="level5"><a class="xref" href="C1.Framework.Drawing.Gdi.BoxGradientBrush.html">BoxGradientBrush</a></div>
      <div class="level5"><a class="xref" href="C1.Framework.Drawing.Gdi.LinearGradientBrush.html">LinearGradientBrush</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.html">C1.Framework.Drawing.Gdi</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_GradientBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class GradientBrush : Brush, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class GradientBrush
    Inherits Brush
    Implements IDisposable, ICloneable</code></pre>
  </div>
  <h5 id="C1_Framework_Drawing_Gdi_GradientBrush_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The handle of the inherited class of  <a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.html">GradientBrush</a> is always IntPtr.Zero,
so it can not be used to <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a>.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_GradientBrush__ctor" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.#ctor">
          <a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.-ctor.html#C1_Framework_Drawing_Gdi_GradientBrush__ctor">GradientBrush()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_GradientBrush_CombineColors_System_Drawing_Color_____" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.CombineColors(System.Drawing.Color[][])">
          <a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.CombineColors.html#C1_Framework_Drawing_Gdi_GradientBrush_CombineColors_System_Drawing_Color_____">CombineColors(params Color[][])</a>
        </td>
        <td class="markdown level1 summary"><p>Combines the colors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_GradientBrush_FillTriangle_C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_System_Drawing_Color___" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle(C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext,System.Drawing.Point,System.Drawing.Point,System.Drawing.Point,System.Drawing.Color[])">
          <a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle.html#C1_Framework_Drawing_Gdi_GradientBrush_FillTriangle_C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_System_Drawing_Color___">FillTriangle(DeviceContext, Point, Point, Point, Color[])</a>
        </td>
        <td class="markdown level1 summary"><p>Fills triangle with specified colors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_GradientBrush_ReverseColors_System_Drawing_Color___" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.ReverseColors(System.Drawing.Color[])">
          <a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.ReverseColors.html#C1_Framework_Drawing_Gdi_GradientBrush_ReverseColors_System_Drawing_Color___">ReverseColors(Color[])</a>
        </td>
        <td class="markdown level1 summary"><p>Get the reverse order colors</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
