# C1.C1Preview.AdjustPrintPageEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_AdjustPrintPageEventArgs" data-uid="C1.C1Preview.AdjustPrintPageEventArgs" class="text-break">AdjustPrintPageEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Describes arguments for the <a class="xref" href="C1.C1Preview.C1PrintManager.AdjustPrintPage.html">AdjustPrintPage</a> event,
fired from within <a class="xref" href="C1.C1Preview.C1PrintManager.html">C1PrintManager</a>'s <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printdocument.printpage">PrintPage</a>
event handler. Allows the user to adjust hard printer margins (e.g. to compensate
for a buggy printer driver), or to print the page in user code
(in that case, <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.Handled.html#C1_C1Preview_AdjustPrintPageEventArgs_Handled">Handled</a> should be set to <b>true</b>
by the event handler).</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"><span class="xref">AdjustPrintPageEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_AdjustPrintPageEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AdjustPrintPageEventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AdjustPrintPageEventArgs</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_C1Preview_AdjustPrintPageEventArgs__ctor" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.#ctor">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.-ctor.html#C1_C1Preview_AdjustPrintPageEventArgs__ctor">AdjustPrintPageEventArgs()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.html">AdjustPrintPageEventArgs</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AdjustPrintPageEventArgs__ctor_C1_C1Preview_C1PrintManager_System_Drawing_Image_System_Drawing_RectangleF_System_Drawing_Printing_PrintPageEventArgs_" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.#ctor(C1.C1Preview.C1PrintManager,System.Drawing.Image,System.Drawing.RectangleF,System.Drawing.Printing.PrintPageEventArgs)">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.-ctor.html#C1_C1Preview_AdjustPrintPageEventArgs__ctor_C1_C1Preview_C1PrintManager_System_Drawing_Image_System_Drawing_RectangleF_System_Drawing_Printing_PrintPageEventArgs_">AdjustPrintPageEventArgs(C1PrintManager, Image, RectangleF, PrintPageEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.html">AdjustPrintPageEventArgs</a>.</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_C1Preview_AdjustPrintPageEventArgs_Handled" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.Handled">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.Handled.html#C1_C1Preview_AdjustPrintPageEventArgs_Handled">Handled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the event hanlder has printed the
page, or whether the caller (print manager) should print the page as usual.</p>
<p>The default is <b>false</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AdjustPrintPageEventArgs_PageImage" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.PageImage">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PageImage.html#C1_C1Preview_AdjustPrintPageEventArgs_PageImage">PageImage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current page image (usually this is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AdjustPrintPageEventArgs_PrintManager" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.PrintManager">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PrintManager.html#C1_C1Preview_AdjustPrintPageEventArgs_PrintManager">PrintManager</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the print manager object that is printing the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AdjustPrintPageEventArgs_PrintPageEventArgs" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.PrintPageEventArgs">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PrintPageEventArgs.html#C1_C1Preview_AdjustPrintPageEventArgs_PrintPageEventArgs">PrintPageEventArgs</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PrintPageEventArgs.html#C1_C1Preview_AdjustPrintPageEventArgs_PrintPageEventArgs">PrintPageEventArgs</a> object passed into the <b>PrintPage</b>
event handler of the print manager.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_AdjustPrintPageEventArgs_PrintableArea" data-uid="C1.C1Preview.AdjustPrintPageEventArgs.PrintableArea">
          <a class="xref" href="C1.C1Preview.AdjustPrintPageEventArgs.PrintableArea.html#C1_C1Preview_AdjustPrintPageEventArgs_PrintableArea">PrintableArea</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the physical printable area of the printer, in hundredths of an inch.
When the event is fired, this property contains the printable area of the printer
as returned by the printer driver, rotated if landscape printing.
You may want to adjust this property e.g. to compensate for a buggy printer driver
reporting incorrect hard margins.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
