# C1.C1Preview.C1Page.Draw

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1Page_Draw_" data-uid="C1.C1Preview.C1Page.Draw*">Draw Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1Page_Draw_" data-uid="C1.C1Preview.C1Page.Draw*"></a>
<h4 id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,C1.C1Preview.PageDrawParams)">Draw(Graphics, PageDrawParams)</h4>
<div class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Draw(Graphics graphics, PageDrawParams pdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Draw(graphics As Graphics, pdp As PageDrawParams)</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">graphics</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> to draw on.</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 draw parameters.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1Page_Draw_" data-uid="C1.C1Preview.C1Page.Draw*"></a>
<h4 id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,System.Boolean,System.Boolean)">Draw(Graphics, bool, bool)</h4>
<div class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Draw(Graphics graphics, bool renderInputControls, bool writeMetafileComments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Draw(graphics As Graphics, renderInputControls As Boolean, writeMetafileComments 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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> to draw on.</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.boolean">bool</a></td>
      <td><span class="parametername">writeMetafileComments</span></td>
      <td><p>Indicates whether to draw metafile comments, like outlines, hyperlinks etc.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1Page_Draw_" data-uid="C1.C1Preview.C1Page.Draw*"></a>
<h4 id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,System.Boolean)">Draw(Graphics, bool)</h4>
<div class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Draw(Graphics graphics, bool renderInputControls)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Draw(graphics As Graphics, renderInputControls 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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> to draw on.</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>
</div>
