# C1.C1Preview.C1PageSettings.ToPageSettings

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PageSettings_ToPageSettings_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings*">ToPageSettings Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PageSettings_ToPageSettings_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings*"></a>
<h4 id="C1_C1Preview_C1PageSettings_ToPageSettings_C1_C1Preview_C1PrintDocument_System_Drawing_Printing_PrinterSettings_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings(C1.C1Preview.C1PrintDocument,System.Drawing.Printing.PrinterSettings)">ToPageSettings(C1PrintDocument, PrinterSettings)</h4>
<div class="markdown level1 summary"><p>Creates an instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> class,
and initializes it with the properties of the current <a class="xref" href="C1.C1Preview.C1PageSettings.html">C1PageSettings</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PageSettings ToPageSettings(C1PrintDocument document, PrinterSettings printerSettings)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToPageSettings(document As C1PrintDocument, printerSettings As PrinterSettings) As PageSettings</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.C1Preview.C1PrintDocument.html">C1PrintDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object providing the default units
(needed if some sizes in the current object are specified in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Default">Default</a>) and DPI
(needed if some sizes in the current object are specified in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>).
Can be <b>null</b>, but in that case the current object must not contain sizes
specified in document default units or pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printersettings">PrinterSettings</a></td>
      <td><span class="parametername">printerSettings</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.printersettings">PrinterSettings</a> object
used to create the resulting <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a>.
If null, the default printer is used.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a></td>
      <td><p>The newly created <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PageSettings_ToPageSettings_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings*"></a>
<h4 id="C1_C1Preview_C1PageSettings_ToPageSettings_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings(C1.C1Preview.C1PrintDocument)">ToPageSettings(C1PrintDocument)</h4>
<div class="markdown level1 summary"><p>Creates an instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> class,
and initializes it with the properties of the current <a class="xref" href="C1.C1Preview.C1PageSettings.html">C1PageSettings</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PageSettings ToPageSettings(C1PrintDocument document)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToPageSettings(document As C1PrintDocument) As PageSettings</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.C1Preview.C1PrintDocument.html">C1PrintDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object providing the default units
(needed if some sizes in the current object are specified in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Default">Default</a>) and DPI
(needed if some sizes in the current object are specified in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>).
Can be null, but in that case the current object must not contain sizes
specified in document default units or pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a></td>
      <td><p>The newly created <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PageSettings_ToPageSettings_" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings*"></a>
<h4 id="C1_C1Preview_C1PageSettings_ToPageSettings" data-uid="C1.C1Preview.C1PageSettings.ToPageSettings">ToPageSettings()</h4>
<div class="markdown level1 summary"><p>Creates an instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> class,
and initializes it with the properties of the current <a class="xref" href="C1.C1Preview.C1PageSettings.html">C1PageSettings</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PageSettings ToPageSettings()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToPageSettings() As PageSettings</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a></td>
      <td><p>The newly created <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.printing.pagesettings">PageSettings</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
