# C1.Document.C1Document

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1Document" data-uid="C1.Document.C1Document" class="text-break">C1Document Class
</h1>
  <div class="markdown level0 summary"><p>Represents a ComponentOne Document.</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">C1Document</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_C1Document_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1Document</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1Document</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1Document__ctor" data-uid="C1.Document.C1Document.#ctor">
          <a class="xref" href="C1.Document.C1Document.-ctor.html#C1_Document_C1Document__ctor">C1Document()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.C1Document.html">C1Document</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Document_C1Document_Body" data-uid="C1.Document.C1Document.Body">
          <a class="xref" href="C1.Document.C1Document.Body.html#C1_Document_C1Document_Body">Body</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the document body.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_CompatibilityOptions" data-uid="C1.Document.C1Document.CompatibilityOptions">
          <a class="xref" href="C1.Document.C1Document.CompatibilityOptions.html#C1_Document_C1Document_CompatibilityOptions">CompatibilityOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.C1Document.CompatibilityOptions.html#C1_Document_C1Document_CompatibilityOptions">CompatibilityOptions</a> object which determines compatibility
with the legacy C1PrintDocument component.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_Dictionary" data-uid="C1.Document.C1Document.Dictionary">
          <a class="xref" href="C1.Document.C1Document.Dictionary.html#C1_Document_C1Document_Dictionary">Dictionary</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current document's dictionary.
The dictionary can be used to hold reusable resources
(e.g. images used in multiple places in the document).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_DocumentInfo" data-uid="C1.Document.C1Document.DocumentInfo">
          <a class="xref" href="C1.Document.C1Document.DocumentInfo.html#C1_Document_C1Document_DocumentInfo">DocumentInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Document.C1Document.DocumentInfo.html#C1_Document_C1Document_DocumentInfo">DocumentInfo</a> object containing information
about the current document (such as author, company, and so on).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_MeasurementDevice" data-uid="C1.Document.C1Document.MeasurementDevice">
          <a class="xref" href="C1.Document.C1Document.MeasurementDevice.html#C1_Document_C1Document_MeasurementDevice">MeasurementDevice</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of device used to provide System.Drawing.Graphics
used to measure/calculate layouts of document objects,
when used GDI/GDI+ functions.
If this property is set to <a class="xref" href="C1.Document.MeasurementDevice.html#C1_Document_MeasurementDevice_Printer">Printer</a>,
<a class="xref" href="C1.Document.C1Document.MeasurementPrinterName.html#C1_Document_C1Document_MeasurementPrinterName">MeasurementPrinterName</a> specifies the printer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_MeasurementPrinterName" data-uid="C1.Document.C1Document.MeasurementPrinterName">
          <a class="xref" href="C1.Document.C1Document.MeasurementPrinterName.html#C1_Document_C1Document_MeasurementPrinterName">MeasurementPrinterName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the printer used to provide System.Drawing.Graphics
used to measure/calculate layouts of document objects,
when used GDI/GDI+ functions.
This property is only used if <a class="xref" href="C1.Document.C1Document.MeasurementDevice.html#C1_Document_C1Document_MeasurementDevice">MeasurementDevice</a> is set to <a class="xref" href="C1.Document.MeasurementDevice.html#C1_Document_MeasurementDevice_Printer">Printer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_MeasurementUnits" data-uid="C1.Document.C1Document.MeasurementUnits">
          <a class="xref" href="C1.Document.C1Document.MeasurementUnits.html#C1_Document_C1Document_MeasurementUnits">MeasurementUnits</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the units of measurement used to define coordinates and sizes of objects in the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_Outlines" data-uid="C1.Document.C1Document.Outlines">
          <a class="xref" href="C1.Document.C1Document.Outlines.html#C1_Document_C1Document_Outlines">Outlines</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Document.OutlineNodeCollection.html">OutlineNodeCollection</a> representing the collection of
<a class="xref" href="C1.Document.OutlineNode.html">OutlineNode</a> objects in the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_Style" data-uid="C1.Document.C1Document.Style">
          <a class="xref" href="C1.Document.C1Document.Style.html#C1_Document_C1Document_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the main (root) <a class="xref" href="C1.Document.C1Document.Style.html#C1_Document_C1Document_Style">Style</a> of the current document.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1Document_Clear" data-uid="C1.Document.C1Document.Clear">
          <a class="xref" href="C1.Document.C1Document.Clear.html#C1_Document_C1Document_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1Document_FindRenderObject_System_String_" data-uid="C1.Document.C1Document.FindRenderObject(System.String)">
          <a class="xref" href="C1.Document.C1Document.FindRenderObject.html#C1_Document_C1Document_FindRenderObject_System_String_">FindRenderObject(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds a render object by name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
