# C1.C1Preview.DocumentLocation.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*">DocumentLocation Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*"></a>
<h4 id="C1_C1Preview_DocumentLocation__ctor_System_Int32_" data-uid="C1.C1Preview.DocumentLocation.#ctor(System.Int32)">DocumentLocation(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DocumentLocation(int pageIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pageIndex As Integer)</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.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The 0-based page index.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*"></a>
<h4 id="C1_C1Preview_DocumentLocation__ctor_System_Int32_System_Int32_C1_C1Preview_RectangleD_C1_C1Preview_UnitTypeEnum_System_Single_" data-uid="C1.C1Preview.DocumentLocation.#ctor(System.Int32,System.Int32,C1.C1Preview.RectangleD,C1.C1Preview.UnitTypeEnum,System.Single)">DocumentLocation(int, int, RectangleD, UnitTypeEnum, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DocumentLocation(int pageNo, int pageIndex, RectangleD bounds, UnitTypeEnum units, float dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pageNo As Integer, pageIndex As Integer, bounds As RectangleD, units As UnitTypeEnum, dpi As Single)</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.int32">int</a></td>
      <td><span class="parametername">pageNo</span></td>
      <td><p>The logical page number.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageIndex</span></td>
      <td><p>The 0-based page index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The bounds on page (specified in <code class="paramref">units</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">units</span></td>
      <td><p>The units used to specify <code class="paramref">bounds</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">dpi</span></td>
      <td><p>The resolution if <code class="paramref">units</code> is pixels.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*"></a>
<h4 id="C1_C1Preview_DocumentLocation__ctor_C1_C1Preview_C1Page_C1_C1Preview_RectangleD_" data-uid="C1.C1Preview.DocumentLocation.#ctor(C1.C1Preview.C1Page,C1.C1Preview.RectangleD)">DocumentLocation(C1Page, RectangleD)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DocumentLocation(C1Page page, RectangleD bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(page As C1Page, bounds As RectangleD)</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.C1Page.html">C1Page</a></td>
      <td><span class="parametername">page</span></td>
      <td><p>The target document page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The target bounds on page.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*"></a>
<h4 id="C1_C1Preview_DocumentLocation__ctor_C1_C1Preview_C1Page_" data-uid="C1.C1Preview.DocumentLocation.#ctor(C1.C1Preview.C1Page)">DocumentLocation(C1Page)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DocumentLocation(C1Page page)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(page As C1Page)</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.C1Page.html">C1Page</a></td>
      <td><span class="parametername">page</span></td>
      <td><p>The target document page.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_DocumentLocation__ctor_" data-uid="C1.C1Preview.DocumentLocation.#ctor*"></a>
<h4 id="C1_C1Preview_DocumentLocation__ctor_C1_C1Preview_IDocumentLocation_" data-uid="C1.C1Preview.DocumentLocation.#ctor(C1.C1Preview.IDocumentLocation)">DocumentLocation(IDocumentLocation)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DocumentLocation(IDocumentLocation documentLocation)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(documentLocation As IDocumentLocation)</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.IDocumentLocation.html">IDocumentLocation</a></td>
      <td><span class="parametername">documentLocation</span></td>
      <td><p>The target location.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
