# C1.C1Preview.C1MultiDocument.PageAsMetafile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1MultiDocument_PageAsMetafile_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile*">PageAsMetafile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1MultiDocument_PageAsMetafile_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_PageAsMetafile_System_Int32_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile(System.Int32,C1.C1Preview.PageDrawParams)">PageAsMetafile(int, PageDrawParams)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> that represents the specified page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile PageAsMetafile(int pageIndex, PageDrawParams pdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PageAsMetafile(pageIndex As Integer, pdp As PageDrawParams) As Metafile</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.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The page index (0-based).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.PageDrawParams.html">PageDrawParams</a></td>
      <td><span class="parametername">pdp</span></td>
      <td><p>Specifies drawing params.</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.imaging.metafile">Metafile</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page, or null if index was invalid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1MultiDocument_PageAsMetafile_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_PageAsMetafile_System_Int32_System_Boolean_System_Drawing_Drawing2D_SmoothingMode_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile(System.Int32,System.Boolean,System.Drawing.Drawing2D.SmoothingMode)">PageAsMetafile(int, bool, SmoothingMode)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> that represents the specified page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile PageAsMetafile(int pageIndex, bool renderInputControls, SmoothingMode smoothingMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PageAsMetafile(pageIndex As Integer, renderInputControls As Boolean, smoothingMode As SmoothingMode) As Metafile</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.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The page index (0-based).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">renderInputControls</span></td>
      <td><p>A value indicating whether to render input (preview forms) controls.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.smoothingmode">SmoothingMode</a></td>
      <td><span class="parametername">smoothingMode</span></td>
      <td><p>The smoothing mode to use.</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.imaging.metafile">Metafile</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page, or null if index was invalid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1MultiDocument_PageAsMetafile_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_PageAsMetafile_System_Int32_" data-uid="C1.C1Preview.C1MultiDocument.PageAsMetafile(System.Int32)">PageAsMetafile(int)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile PageAsMetafile(int pageIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PageAsMetafile(pageIndex As Integer) As Metafile</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.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The page index (0-based).</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.imaging.metafile">Metafile</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the specified page, or null if index was invalid.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
