# C1.Util.DX.Direct2D.PrintControl.AddPage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_PrintControl_AddPage_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage*">AddPage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_PrintControl_AddPage_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage*"></a>
<h4 id="C1_Util_DX_Direct2D_PrintControl_AddPage_C1_Util_DX_Direct2D_CommandList_C1_Util_DX_Size2F_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage(C1.Util.DX.Direct2D.CommandList,C1.Util.DX.Size2F)">AddPage(CommandList, Size2F)</h4>
<div class="markdown level1 summary"><p>Converts Direct2D primitives in the passed-in command list into a fixed page representation for use by the print subsystem.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPage(CommandList commandList, Size2F pageSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPage(commandList As CommandList, pageSize As Size2F)</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="C1.Util.DX.Direct2D.CommandList.html">CommandList</a></td>
      <td><span class="parametername">commandList</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a></td>
      <td><span class="parametername">pageSize</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_PrintControl_AddPage_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage*"></a>
<h4 id="C1_Util_DX_Direct2D_PrintControl_AddPage_C1_Util_DX_Direct2D_CommandList_C1_Util_DX_Size2F_C1_Util_DX_Storage_ComStream_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage(C1.Util.DX.Direct2D.CommandList,C1.Util.DX.Size2F,C1.Util.DX.Storage.ComStream)">AddPage(CommandList, Size2F, ComStream)</h4>
<div class="markdown level1 summary"><p>Converts Direct2D primitives in the passed-in command list into a fixed page representation for use by the print subsystem.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPage(CommandList commandList, Size2F pageSize, ComStream pagePrintTicketStream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPage(commandList As CommandList, pageSize As Size2F, pagePrintTicketStream As ComStream)</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="C1.Util.DX.Direct2D.CommandList.html">CommandList</a></td>
      <td><span class="parametername">commandList</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a></td>
      <td><span class="parametername">pageSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Storage.ComStream.html">ComStream</a></td>
      <td><span class="parametername">pagePrintTicketStream</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_PrintControl_AddPage_" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage*"></a>
<h4 id="C1_Util_DX_Direct2D_PrintControl_AddPage_C1_Util_DX_Direct2D_CommandList_C1_Util_DX_Size2F_C1_Util_DX_Storage_ComStream_System_Int64__System_Int64__" data-uid="C1.Util.DX.Direct2D.PrintControl.AddPage(C1.Util.DX.Direct2D.CommandList,C1.Util.DX.Size2F,C1.Util.DX.Storage.ComStream,System.Int64@,System.Int64@)">AddPage(CommandList, Size2F, ComStream, out long, out long)</h4>
<div class="markdown level1 summary"><p>Converts Direct2D primitives in the passed-in command list into a fixed page representation for use by the print subsystem.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddPage(CommandList commandList, Size2F pageSize, ComStream pagePrintTicketStream, out long tag1, out long tag2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddPage(commandList As CommandList, pageSize As Size2F, pagePrintTicketStream As ComStream, ByRef tag1 As Long, ByRef tag2 As Long)</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="C1.Util.DX.Direct2D.CommandList.html">CommandList</a></td>
      <td><span class="parametername">commandList</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Size2F.html">Size2F</a></td>
      <td><span class="parametername">pageSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Storage.ComStream.html">ComStream</a></td>
      <td><span class="parametername">pagePrintTicketStream</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td><span class="parametername">tag1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td><span class="parametername">tag2</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
