# FarPoint.Win.Spread.PrintMessageBoxEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_PrintMessageBoxEventArgs__ctor_" data-uid="FarPoint.Win.Spread.PrintMessageBoxEventArgs.#ctor*">PrintMessageBoxEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_PrintMessageBoxEventArgs__ctor_" data-uid="FarPoint.Win.Spread.PrintMessageBoxEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_PrintMessageBoxEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_String_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.PrintMessageBoxEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.String,System.Int32,System.Boolean)">PrintMessageBoxEventArgs(SpreadView, string, int, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the PrintMessageBox 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 PrintMessageBoxEventArgs(SpreadView view, string abortMessage, int id, bool beginPrinting)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, abortMessage As String, id As Integer, beginPrinting As Boolean)</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.string">string</a></td>
      <td><span class="parametername">abortMessage</span></td>
      <td><p>Value of the PrintInfo.AbortMessage property for this sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">id</span></td>
      <td><p>Print job identifier</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">beginPrinting</span></td>
      <td><p>Whether the print job is beginning</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_PrintMessageBoxEventArgs__ctor_" data-uid="FarPoint.Win.Spread.PrintMessageBoxEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_PrintMessageBoxEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_String_System_Int32_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.PrintMessageBoxEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.String,System.Int32,System.Boolean,System.Boolean)">PrintMessageBoxEventArgs(SpreadView, string, int, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the PrintMessageBox 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 PrintMessageBoxEventArgs(SpreadView view, string abortMessage, int id, bool beginPrinting, bool isPreview)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, abortMessage As String, id As Integer, beginPrinting As Boolean, isPreview As Boolean)</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.string">string</a></td>
      <td><span class="parametername">abortMessage</span></td>
      <td><p>Value of the PrintInfo.AbortMessage property for this sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">id</span></td>
      <td><p>Print job identifier</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">beginPrinting</span></td>
      <td><p>Whether the print job is beginning</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isPreview</span></td>
      <td><p>Flags event for PrintPreview</p>
</td>
    </tr>
  </tbody>
</table>
</div>
