# C1.Framework.Drawing.Gdi.BoxGradientBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_BoxGradientBrush" data-uid="C1.Framework.Drawing.Gdi.BoxGradientBrush" class="text-break">BoxGradientBrush 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"><a class="xref" href="C1.Framework.Drawing.Gdi.GradientBrush.html">GradientBrush</a></div>
    <div class="level5"><span class="xref">BoxGradientBrush</span></div>
      <div class="level6"><a class="xref" href="C1.Framework.Drawing.Gdi.LinearBoxGradientBrush.html">LinearBoxGradientBrush</a></div>
      <div class="level6"><a class="xref" href="C1.Framework.Drawing.Gdi.TriangleBoxGradientBrush.html">TriangleBoxGradientBrush</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_BoxGradientBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class BoxGradientBrush : GradientBrush, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class BoxGradientBrush
    Inherits GradientBrush
    Implements IDisposable, ICloneable</code></pre>
  </div>
  <h5 id="C1_Framework_Drawing_Gdi_BoxGradientBrush_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The handle of the <a class="xref" href="C1.Framework.Drawing.Gdi.BoxGradientBrush.html">BoxGradientBrush</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_BoxGradientBrush__ctor" data-uid="C1.Framework.Drawing.Gdi.BoxGradientBrush.#ctor">
          <a class="xref" href="C1.Framework.Drawing.Gdi.BoxGradientBrush.-ctor.html#C1_Framework_Drawing_Gdi_BoxGradientBrush__ctor">BoxGradientBrush()</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_BoxGradientBrush_Clone" data-uid="C1.Framework.Drawing.Gdi.BoxGradientBrush.Clone">
          <a class="xref" href="C1.Framework.Drawing.Gdi.BoxGradientBrush.Clone.html#C1_Framework_Drawing_Gdi_BoxGradientBrush_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy if this <b>BoxGradientBrush</b> object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
