# C1.Win.Layout.HeaderPaintEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Layout_HeaderPaintEventArgs__ctor_" data-uid="C1.Win.Layout.HeaderPaintEventArgs.#ctor*">HeaderPaintEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Layout_HeaderPaintEventArgs__ctor_" data-uid="C1.Win.Layout.HeaderPaintEventArgs.#ctor*"></a>
<h4 id="C1_Win_Layout_HeaderPaintEventArgs__ctor_System_Windows_Forms_Control_System_Windows_Forms_Control_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="C1.Win.Layout.HeaderPaintEventArgs.#ctor(System.Windows.Forms.Control,System.Windows.Forms.Control,System.Drawing.Graphics,System.Drawing.Rectangle)">HeaderPaintEventArgs(Control, Control, Graphics, Rectangle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Layout.HeaderPaintEventArgs.html">HeaderPaintEventArgs</a> class with the specified header, item container, graphics and clipping rectangle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HeaderPaintEventArgs(Control header, Control control, Graphics graphics, Rectangle clipRect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(header As Control, control As Control, graphics As Graphics, clipRect As Rectangle)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">header</span></td>
      <td><p>The header panel of the item container.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>The item container.</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">graphics</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> used to paint the item.</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">clipRect</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> that represents the rectangle in which to paint.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
