# C1.C1Preview.C1PrintDocument.RenderDirect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_RenderDirect_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirect*">RenderDirect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_RenderDirect_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirect*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirect(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.RenderObject)">RenderDirect(Unit, Unit, RenderObject)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
<p>This method can only be used if <a class="xref" href="C1.C1Preview.C1PrintDocument.IsStartEndDocMode.html#C1_C1Preview_C1PrintDocument_IsStartEndDocMode">IsStartEndDocMode</a> is <b>true</b>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderDirect(Unit x, Unit y, RenderObject ro)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderDirect(x As Unit, y As Unit, ro As RenderObject) 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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal (X) coordinate at which to render the object (cannot be <b>auto</b>).</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 at which to render the object (cannot be <b>auto</b>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">ro</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> object to render.</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.boolean">bool</a></td>
      <td><p><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The specified coordinates (<code class="paramref">x</code> and <code class="paramref">y</code>)
are assigned to the <a class="xref" href="C1.C1Preview.RenderObject.X.html#C1_C1Preview_RenderObject_X">X</a> and <a class="xref" href="C1.C1Preview.RenderObject.Y.html#C1_C1Preview_RenderObject_Y">Y</a> properties
of the passed object.</p>
<p>
As all other <b>RenderBlock...</b>, <b>RenderDirect...</b> and <b>RenderInline...</b> methods,
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>
on the current document, i.e. when the <a class="xref" href="C1.C1Preview.C1PrintDocument.IsStartEndDocMode.html#C1_C1Preview_C1PrintDocument_IsStartEndDocMode">IsStartEndDocMode</a> property is <b>true</b>.
</p>
<p>
Do not use this method if the document is generated with a call to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate()</a> method.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject__seealso">See Also</h5>
<div class="seealso">
    <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><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirect_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirect*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirect(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.RenderObject,System.Object,System.Object)">RenderDirect(Unit, Unit, RenderObject, object, object)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
<p>This method can only be used if <a class="xref" href="C1.C1Preview.C1PrintDocument.IsStartEndDocMode.html#C1_C1Preview_C1PrintDocument_IsStartEndDocMode">IsStartEndDocMode</a> is <b>true</b>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderDirect(Unit x, Unit y, RenderObject ro, object width, object height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderDirect(x As Unit, y As Unit, ro As RenderObject, width As Object, height As Object) 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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal (X) coordinate at which to render the object (cannot be <b>auto</b>).</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 at which to render the object (cannot be <b>auto</b>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">ro</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> object to render.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the object (if null, <b>auto</b> is used).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the object (if null, <b>auto</b> 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.boolean">bool</a></td>
      <td><p><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The specified coordinates (<code class="paramref">x</code> and <code class="paramref">y</code>)
are assigned to the <a class="xref" href="C1.C1Preview.RenderObject.X.html#C1_C1Preview_RenderObject_X">X</a> and <a class="xref" href="C1.C1Preview.RenderObject.Y.html#C1_C1Preview_RenderObject_Y">Y</a> properties
of the passed object.</p>
<p>
The specified dimensions (<code class="paramref">width</code> and <code class="paramref">height</code>)
are assigned to the <a class="xref" href="C1.C1Preview.RenderObject.Width.html#C1_C1Preview_RenderObject_Width">Width</a> and <a class="xref" href="C1.C1Preview.RenderObject.Height.html#C1_C1Preview_RenderObject_Height">Height</a> properties
of the passed object.
</p>
<p>
As all other <b>RenderBlock...</b>, <b>RenderDirect...</b> and <b>RenderInline...</b> methods,
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>
on the current document, i.e. when the <a class="xref" href="C1.C1Preview.C1PrintDocument.IsStartEndDocMode.html#C1_C1Preview_C1PrintDocument_IsStartEndDocMode">IsStartEndDocMode</a> property is <b>true</b>.
</p>
<p>
Do not use this method if the document is generated with a call to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate()</a> method.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object__seealso">See Also</h5>
<div class="seealso">
    <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><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>
</div>
