# FarPoint.Win.Spread.PrintHeaderFooterAreaEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_PrintHeaderFooterAreaEventArgs__ctor_" data-uid="FarPoint.Win.Spread.PrintHeaderFooterAreaEventArgs.#ctor*">PrintHeaderFooterAreaEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_PrintHeaderFooterAreaEventArgs__ctor_" data-uid="FarPoint.Win.Spread.PrintHeaderFooterAreaEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_PrintHeaderFooterAreaEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_Drawing_Graphics_System_Boolean_System_Drawing_Rectangle_System_Int32_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.PrintHeaderFooterAreaEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.Drawing.Graphics,System.Boolean,System.Drawing.Rectangle,System.Int32,FarPoint.Win.Spread.Model.CellRange)">PrintHeaderFooterAreaEventArgs(SpreadView, Graphics, bool, Rectangle, int, CellRange)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the PrintBackground event arguments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PrintHeaderFooterAreaEventArgs(SpreadView view, Graphics g, bool isHeader, Rectangle rectangle, int pageNum, CellRange cells)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, g As Graphics, isHeader As Boolean, rectangle As Rectangle, pageNum As Integer, cells As CellRange)</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="FarPoint.Win.Spread.SpreadView.html">SpreadView</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>View that contains the sheet being printed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics device that handles printing</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isHeader</span></td>
      <td><p>Determines if the area being printed is in the header or footer</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rectangle</span></td>
      <td><p>Rectangular area representing the area of the sheet to be printed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageNum</span></td>
      <td><p>Number of the current page being printed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cells</span></td>
      <td><p>Cell range</p>
</td>
    </tr>
  </tbody>
</table>
</div>
