# C1.C1Preview.DocumentBody

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DocumentBody" data-uid="C1.C1Preview.DocumentBody" class="text-break">DocumentBody Class
</h1>
  <div class="markdown level0 summary"><p>Represents the body of a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
The body is the main part of a document presenting visible content,
and can be accessed via the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> property on the document.
(The only other parts presenting visible document content are page headers and footers.)</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DocumentBody</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_DocumentBody_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class DocumentBody</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class DocumentBody</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_DocumentBody_Children" data-uid="C1.C1Preview.DocumentBody.Children">
          <a class="xref" href="C1.C1Preview.DocumentBody.Children.html#C1_C1Preview_DocumentBody_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> elements contained within the current <a class="xref" href="C1.C1Preview.DocumentBody.html">DocumentBody</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentBody_Document" data-uid="C1.C1Preview.DocumentBody.Document">
          <a class="xref" href="C1.C1Preview.DocumentBody.Document.html#C1_C1Preview_DocumentBody_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object containing this <a class="xref" href="C1.C1Preview.DocumentBody.html">DocumentBody</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentBody_HasChildren" data-uid="C1.C1Preview.DocumentBody.HasChildren">
          <a class="xref" href="C1.C1Preview.DocumentBody.HasChildren.html#C1_C1Preview_DocumentBody_HasChildren">HasChildren</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current <a class="xref" href="C1.C1Preview.DocumentBody.html">DocumentBody</a> contains any render objects
(i.e. whether the <a class="xref" href="C1.C1Preview.DocumentBody.Children.html#C1_C1Preview_DocumentBody_Children">Children</a> collection exists and is not empty).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentBody_Stacking" data-uid="C1.C1Preview.DocumentBody.Stacking">
          <a class="xref" href="C1.C1Preview.DocumentBody.Stacking.html#C1_C1Preview_DocumentBody_Stacking">Stacking</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the stacking rules for the current <a class="xref" href="C1.C1Preview.DocumentBody.html">DocumentBody</a>.
Use <a class="xref" href="C1.C1Preview.C1PrintDocument.Stacking.html#C1_C1Preview_C1PrintDocument_Stacking">Stacking</a> to set the stacking rules.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
