# C1.C1Preview.C1Page.AsMetafile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*">AsMetafile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile" data-uid="C1.C1Preview.C1Page.AsMetafile">AsMetafile()</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.
This method draws input controls.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Metafile AsMetafile()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile() As Metafile</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.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 current page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1Page_AsMetafile_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_">AsMetafile(Graphics, EmfType, bool, bool)</a></div>
</div>


<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Boolean)">AsMetafile(bool)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current 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 AsMetafile(bool renderInputControls)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile(renderInputControls As Boolean) 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.boolean">bool</a></td>
      <td><span class="parametername">renderInputControls</span></td>
      <td><p>Indicates whether to draw input controls (see <a class="xref" href="C1.C1Preview.RenderInputBase.html">RenderInputBase</a>).</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 current page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1Page_AsMetafile_System_Boolean__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_">AsMetafile(Graphics, EmfType, bool, bool)</a></div>
</div>


<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Imaging_EmfType_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Imaging.EmfType,System.Boolean)">AsMetafile(EmfType, bool)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current 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 AsMetafile(EmfType emfType, bool whiten)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile(emfType As EmfType, whiten As Boolean) 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.drawing.imaging.emftype">EmfType</a></td>
      <td><span class="parametername">emfType</span></td>
      <td><p>Specifies the metafile type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">whiten</span></td>
      <td><p>Indicates whether to fill the page with white color before drawing.</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 current page.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,System.Drawing.Imaging.EmfType,System.Boolean,System.Boolean)">AsMetafile(Graphics, EmfType, bool, bool)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current 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 AsMetafile(Graphics referenceGraphics, EmfType emfType, bool whiten, bool renderInputControls)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile(referenceGraphics As Graphics, emfType As EmfType, whiten As Boolean, renderInputControls As Boolean) 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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">referenceGraphics</span></td>
      <td><p>Specifies the reference graphics for the metafile.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype">EmfType</a></td>
      <td><span class="parametername">emfType</span></td>
      <td><p>Specifies the metafile type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">whiten</span></td>
      <td><p>Indicates whether to fill the page with white color before drawing.</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>Indicates whether to draw input controls (see <a class="xref" href="C1.C1Preview.RenderInputBase.html">RenderInputBase</a>).</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 current page.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_System_Drawing_Drawing2D_SmoothingMode_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,System.Drawing.Imaging.EmfType,System.Boolean,System.Boolean,System.Drawing.Drawing2D.SmoothingMode)">AsMetafile(Graphics, EmfType, bool, bool, SmoothingMode)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current 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 AsMetafile(Graphics referenceGraphics, EmfType emfType, bool whiten, bool renderInputControls, SmoothingMode smoothingMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile(referenceGraphics As Graphics, emfType As EmfType, whiten As Boolean, 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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">referenceGraphics</span></td>
      <td><p>Specifies the reference graphics for the metafile.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype">EmfType</a></td>
      <td><span class="parametername">emfType</span></td>
      <td><p>Specifies the metafile type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">whiten</span></td>
      <td><p>Indicates whether to fill the page with white color before drawing.</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>Indicates whether to draw input controls (see <a class="xref" href="C1.C1Preview.RenderInputBase.html">RenderInputBase</a>).</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>Smoothing mode used for drawing.</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 current page.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1Page_AsMetafile_" data-uid="C1.C1Preview.C1Page.AsMetafile*"></a>
<h4 id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,C1.C1Preview.PageDrawParams)">AsMetafile(Graphics, PageDrawParams)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current 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 AsMetafile(Graphics referenceGraphics, PageDrawParams pdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AsMetafile(referenceGraphics As Graphics, 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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">referenceGraphics</span></td>
      <td><p>The reference graphics for the metafile.</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>The parameters used to draw the metafile.</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 current page.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
