# C1.Framework.IBrushProvider

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_IBrushProvider" data-uid="C1.Framework.IBrushProvider" class="text-break">IBrushProvider Interface
</h1>
  <div class="markdown level0 summary"><p>Encapsulates a Brush for painting background.</p>
</div>
  <div class="markdown level0 conceptual"></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_IBrushProvider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IBrushProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IBrushProvider</code></pre>
  </div>
  <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_IBrushProvider_DisposeBrushAfterUse" data-uid="C1.Framework.IBrushProvider.DisposeBrushAfterUse">
          <a class="xref" href="C1.Framework.IBrushProvider.DisposeBrushAfterUse.html#C1_Framework_IBrushProvider_DisposeBrushAfterUse">DisposeBrushAfterUse</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the brush obtained from the <a class="xref" href="C1.Framework.IBrushProvider.GetBrush.html#C1_Framework_IBrushProvider_GetBrush_System_Drawing_Rectangle_">GetBrush(Rectangle)</a> method should be disposed after use.</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_IBrushProvider_GetBrush_System_Drawing_Rectangle_" data-uid="C1.Framework.IBrushProvider.GetBrush(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.IBrushProvider.GetBrush.html#C1_Framework_IBrushProvider_GetBrush_System_Drawing_Rectangle_">GetBrush(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a brush for the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IBrushProvider_GetBrushColor" data-uid="C1.Framework.IBrushProvider.GetBrushColor">
          <a class="xref" href="C1.Framework.IBrushProvider.GetBrushColor.html#C1_Framework_IBrushProvider_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>

</div>
