# C1.Framework.BackgroundBrushProvider

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_BackgroundBrushProvider" data-uid="C1.Framework.BackgroundBrushProvider" class="text-break">BackgroundBrushProvider Class
</h1>
  <div class="markdown level0 summary"><p>Class that encapsulates <a class="xref" href="C1.Framework.BackgroundBrushProvider.Brush.html#C1_Framework_BackgroundBrushProvider_Brush">Brush</a> objects used to paint element backgrounds.
It exposes properties that can be used to create and serialize <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.solidbrush">SolidBrush</a>,
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.lineargradientbrush">LinearGradientBrush</a>, and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.pathgradientbrush">PathGradientBrush</a> objects.</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"><span class="xref">BackgroundBrushProvider</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Framework.IBrushProvider.html">IBrushProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_BackgroundBrushProvider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BackgroundBrushProvider : IBrushProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BackgroundBrushProvider
    Implements IBrushProvider</code></pre>
  </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_BackgroundBrushProvider__ctor" data-uid="C1.Framework.BackgroundBrushProvider.#ctor">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.-ctor.html#C1_Framework_BackgroundBrushProvider__ctor">BackgroundBrushProvider()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_BackColor" data-uid="C1.Framework.BackgroundBrushProvider.BackColor">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.BackColor.html#C1_Framework_BackgroundBrushProvider_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the main color (used when <a class="xref" href="C1.Framework.BackgroundBrushProvider.GradientMode.html#C1_Framework_BackgroundBrushProvider_GradientMode">GradientMode</a> is set to <b>None</b>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_Blend" data-uid="C1.Framework.BackgroundBrushProvider.Blend">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.Blend.html#C1_Framework_BackgroundBrushProvider_Blend">Blend</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.BackgroundBrushProvider.Blend.html#C1_Framework_BackgroundBrushProvider_Blend">Blend</a> used to create the gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_Brush" data-uid="C1.Framework.BackgroundBrushProvider.Brush">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.Brush.html#C1_Framework_BackgroundBrushProvider_Brush">Brush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.Framework.BackgroundBrushProvider.Brush.html#C1_Framework_BackgroundBrushProvider_Brush">Brush</a> object that may be something other than a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.solidbrush">SolidBrush</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_Center" data-uid="C1.Framework.BackgroundBrushProvider.Center">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.Center.html#C1_Framework_BackgroundBrushProvider_Center">Center</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a> that represents the center of a radial gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_DisposeBrushAfterUse" data-uid="C1.Framework.BackgroundBrushProvider.DisposeBrushAfterUse">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.DisposeBrushAfterUse.html#C1_Framework_BackgroundBrushProvider_DisposeBrushAfterUse">DisposeBrushAfterUse</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the brush should be disposed after use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_GammaCorrection" data-uid="C1.Framework.BackgroundBrushProvider.GammaCorrection">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.GammaCorrection.html#C1_Framework_BackgroundBrushProvider_GammaCorrection">GammaCorrection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether gamma correction is applied to the gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_GradientColor" data-uid="C1.Framework.BackgroundBrushProvider.GradientColor">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.GradientColor.html#C1_Framework_BackgroundBrushProvider_GradientColor">GradientColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the secondary color (used when <a class="xref" href="C1.Framework.BackgroundBrushProvider.GradientMode.html#C1_Framework_BackgroundBrushProvider_GradientMode">GradientMode</a> is set to a value other than <b>None</b>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_GradientMode" data-uid="C1.Framework.BackgroundBrushProvider.GradientMode">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.GradientMode.html#C1_Framework_BackgroundBrushProvider_GradientMode">GradientMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.BackgroundBrushProvider.GradientMode.html#C1_Framework_BackgroundBrushProvider_GradientMode">GradientMode</a> for this <a class="xref" href="C1.Framework.BackgroundBrushProvider.html">BackgroundBrushProvider</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_InterpolationColors" data-uid="C1.Framework.BackgroundBrushProvider.InterpolationColors">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.InterpolationColors.html#C1_Framework_BackgroundBrushProvider_InterpolationColors">InterpolationColors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.colorblend">ColorBlend</a> that defines a multicolor gradient.</p>
</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_BackgroundBrushProvider_Clone" data-uid="C1.Framework.BackgroundBrushProvider.Clone">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.Clone.html#C1_Framework_BackgroundBrushProvider_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a clone of this <a class="xref" href="C1.Framework.BackgroundBrushProvider.html">BackgroundBrushProvider</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_GetBrush_System_Drawing_Rectangle_" data-uid="C1.Framework.BackgroundBrushProvider.GetBrush(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.GetBrush.html#C1_Framework_BackgroundBrushProvider_GetBrush_System_Drawing_Rectangle_">GetBrush(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an updated <a class="xref" href="C1.Framework.BackgroundBrushProvider.Brush.html#C1_Framework_BackgroundBrushProvider_Brush">Brush</a> that can be used to fill a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BackgroundBrushProvider_GetBrushColor" data-uid="C1.Framework.BackgroundBrushProvider.GetBrushColor">
          <a class="xref" href="C1.Framework.BackgroundBrushProvider.GetBrushColor.html#C1_Framework_BackgroundBrushProvider_GetBrushColor">GetBrushColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a background color for hosted controls that don't support gradients.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Win.Themes.BackgroundBrushProviderExtension.Copy.html#C1_Win_Themes_BackgroundBrushProviderExtension_Copy_C1_Framework_BackgroundBrushProvider_C1_Framework_BackgroundBrushProvider_">BackgroundBrushProviderExtension.Copy(BackgroundBrushProvider, BackgroundBrushProvider)</a>
  </div>

</div>
