# GrapeCity.ActiveReports.Drawing.Serialization.MetaCanvas.CreateHatchBrush

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Drawing_Serialization_MetaCanvas_CreateHatchBrush_" data-uid="GrapeCity.ActiveReports.Drawing.Serialization.MetaCanvas.CreateHatchBrush*">CreateHatchBrush Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Drawing_Serialization_MetaCanvas_CreateHatchBrush_" data-uid="GrapeCity.ActiveReports.Drawing.Serialization.MetaCanvas.CreateHatchBrush*"></a>
<h4 id="GrapeCity_ActiveReports_Drawing_Serialization_MetaCanvas_CreateHatchBrush_GrapeCity_ActiveReports_Drawing_HatchStyleEx_System_Drawing_Color_System_Drawing_Color_" data-uid="GrapeCity.ActiveReports.Drawing.Serialization.MetaCanvas.CreateHatchBrush(GrapeCity.ActiveReports.Drawing.HatchStyleEx,System.Drawing.Color,System.Drawing.Color)">CreateHatchBrush(HatchStyleEx, Color, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="GrapeCity.ActiveReports.Drawing.BrushEx.html">BrushEx</a> using specified hatch pattern and colors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BrushEx CreateHatchBrush(HatchStyleEx hatchStyle, Color foreColor, Color backColor)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.HatchStyleEx.html">HatchStyleEx</a></td>
      <td><span class="parametername">hatchStyle</span></td>
      <td><p>The hatch style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td><p>The foreground color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>The background color.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.BrushEx.html">BrushEx</a></td>
      <td><p>The hatch brush.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.Drawing.IDrawingCanvas.CreateHatchBrush.html#GrapeCity_ActiveReports_Drawing_IDrawingCanvas_CreateHatchBrush_GrapeCity_ActiveReports_Drawing_HatchStyleEx_System_Drawing_Color_System_Drawing_Color_">IDrawingCanvas.CreateHatchBrush(HatchStyleEx, Color, Color)</a></div>
</div>
