# GrapeCity.Documents.Text.ObjectRect.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*">ObjectRect Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_ObjectRect__ctor" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor">ObjectRect()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</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 ObjectRect()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_ObjectRect__ctor_GrapeCity_Documents_Text_ObjectRect_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(GrapeCity.Documents.Text.ObjectRect)">ObjectRect(ObjectRect)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> class from another instance of <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ObjectRect(ObjectRect source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As ObjectRect)</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="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a></td>
      <td><span class="parametername">source</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_ObjectRect__ctor_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(System.Drawing.RectangleF)">ObjectRect(RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> class from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ObjectRect(RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rc As RectangleF)</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.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The rectangle used to initialize the new ObjectRect.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_ObjectRect__ctor_System_Drawing_PointF_System_Drawing_SizeF_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(System.Drawing.PointF,System.Drawing.SizeF)">ObjectRect(PointF, SizeF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> class with the specified location and size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ObjectRect(PointF pt, SizeF sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pt As PointF, sz As SizeF)</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.drawing.pointf">PointF</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a> that represents the upper-left corner of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a> that represents the size of the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_ObjectRect__ctor_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_ObjectRect__ctor_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(System.Single,System.Single,System.Single,System.Single)">ObjectRect(float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> class with the specified coordinates and size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ObjectRect(float x, float y, float width, float height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Single, y As Single, width As Single, height 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.single">float</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The X coordinate of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The Y coordinate of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
