# C1.C1Preview.C1PrintDocument.RenderDirectGraphicsBegin

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_RenderDirectGraphicsBegin_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsBegin*">RenderDirectGraphicsBegin Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_RenderDirectGraphicsBegin_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsBegin*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectGraphicsBegin_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsBegin(C1.C1Preview.Unit,C1.C1Preview.Unit)">RenderDirectGraphicsBegin(Unit, Unit)</h4>
<div class="markdown level1 summary"><p>Creates an internally maintained <a class="xref" href="C1.C1Preview.RenderGraphics.html">RenderGraphics</a> object
that can be used to add graphics at a specific position to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a>
of the document on 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 void RenderDirectGraphicsBegin(Unit x, Unit y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectGraphicsBegin(x As Unit, y As Unit)</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.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal (X) coordinate on the current page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical (Y) coordinate on the current page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectGraphicsBegin_C1_C1Preview_Unit_C1_C1Preview_Unit__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Between the calls to this method and <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsEnd.html#C1_C1Preview_C1PrintDocument_RenderDirectGraphicsEnd">RenderDirectGraphicsEnd()</a>,
use <a class="xref" href="C1.C1Preview.C1PrintDocument.CurrentDirectRenderGraphics.html#C1_C1Preview_C1PrintDocument_CurrentDirectRenderGraphics">CurrentDirectRenderGraphics</a> property to access the <a class="xref" href="C1.C1Preview.RenderGraphics.html">RenderGraphics</a> object
that can be used to draw on.</p>
<p>
This method throws an exception if a call to <b>RenderDirectGraphicsBegin</b> without
a matching call to <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsEnd.html#C1_C1Preview_C1PrintDocument_RenderDirectGraphicsEnd">RenderDirectGraphicsEnd()</a> has already been issued.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectGraphicsBegin_C1_C1Preview_Unit_C1_C1Preview_Unit__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirectGraphicsEnd.html#C1_C1Preview_C1PrintDocument_RenderDirectGraphicsEnd">RenderDirectGraphicsEnd</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.CurrentDirectRenderGraphics.html#C1_C1Preview_C1PrintDocument_CurrentDirectRenderGraphics">CurrentDirectRenderGraphics</a></div>
    <div><a class="xref" href="C1.C1Preview.RenderGraphics.html">RenderGraphics</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>
</div>
