# C1.Framework.Drawing.Gdi.HatchBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_HatchBrush" data-uid="C1.Framework.Drawing.Gdi.HatchBrush" class="text-break">HatchBrush Class
</h1>
  <div class="markdown level0 summary"><p>Represents the brush which draw with <a class="xref" href="C1.Framework.Drawing.Gdi.HatchStyle.html">HatchStyle</a></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">HatchBrush</span></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_HatchBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class HatchBrush : Brush, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class HatchBrush
    Inherits Brush
    Implements IDisposable, ICloneable</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_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.#ctor(C1.Framework.Drawing.Gdi.HatchStyle)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.-ctor.html#C1_Framework_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_">HatchBrush(HatchStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> class</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.#ctor(C1.Framework.Drawing.Gdi.HatchStyle,System.Drawing.Color)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.-ctor.html#C1_Framework_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_System_Drawing_Color_">HatchBrush(HatchStyle, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> class</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.#ctor(C1.Framework.Drawing.Gdi.HatchStyle,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.-ctor.html#C1_Framework_Drawing_Gdi_HatchBrush__ctor_C1_Framework_Drawing_Gdi_HatchStyle_System_Drawing_Color_System_Drawing_Color_">HatchBrush(HatchStyle, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> class</p>
</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_Drawing_Gdi_HatchBrush_BackgroundColor" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.BackgroundColor">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.BackgroundColor.html#C1_Framework_Drawing_Gdi_HatchBrush_BackgroundColor">BackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of this <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_HatchBrush_ForegroundColor" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.ForegroundColor">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.ForegroundColor.html#C1_Framework_Drawing_Gdi_HatchBrush_ForegroundColor">ForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of this <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_HatchBrush_Style" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.Style">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.Style.html#C1_Framework_Drawing_Gdi_HatchBrush_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of the <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a>.</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_Drawing_Gdi_HatchBrush_Clone" data-uid="C1.Framework.Drawing.Gdi.HatchBrush.Clone">
          <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.Clone.html#C1_Framework_Drawing_Gdi_HatchBrush_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.Framework.Drawing.Gdi.HatchBrush.html">HatchBrush</a> that has the same style as this brush.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
