# GrapeCity.Documents.Text.ObjectRect

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Text_ObjectRect" data-uid="GrapeCity.Documents.Text.ObjectRect" class="text-break">ObjectRect Class
</h1>
  <div class="markdown level0 summary"><p>Represents a rectangular area occupied by an embedded object.</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">ObjectRect</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Text.html">GrapeCity.Documents.Text</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Text_ObjectRect_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ObjectRect</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ObjectRect</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="GrapeCity_Documents_Text_ObjectRect__ctor" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.-ctor.html#GrapeCity_Documents_Text_ObjectRect__ctor">ObjectRect()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect__ctor_GrapeCity_Documents_Text_ObjectRect_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(GrapeCity.Documents.Text.ObjectRect)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.-ctor.html#GrapeCity_Documents_Text_ObjectRect__ctor_GrapeCity_Documents_Text_ObjectRect_">ObjectRect(ObjectRect)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.-ctor.html#GrapeCity_Documents_Text_ObjectRect__ctor_System_Drawing_PointF_System_Drawing_SizeF_">ObjectRect(PointF, SizeF)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect__ctor_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Text.ObjectRect.#ctor(System.Drawing.RectangleF)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.-ctor.html#GrapeCity_Documents_Text_ObjectRect__ctor_System_Drawing_RectangleF_">ObjectRect(RectangleF)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.-ctor.html#GrapeCity_Documents_Text_ObjectRect__ctor_System_Single_System_Single_System_Single_System_Single_">ObjectRect(float, float, float, float)</a>
        </td>
        <td 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>
</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="GrapeCity_Documents_Text_ObjectRect_Bottom" data-uid="GrapeCity.Documents.Text.ObjectRect.Bottom">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Bottom.html#GrapeCity_Documents_Text_ObjectRect_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the bottom edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Height" data-uid="GrapeCity.Documents.Text.ObjectRect.Height">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Height.html#GrapeCity_Documents_Text_ObjectRect_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Left" data-uid="GrapeCity.Documents.Text.ObjectRect.Left">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Left.html#GrapeCity_Documents_Text_ObjectRect_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Right" data-uid="GrapeCity.Documents.Text.ObjectRect.Right">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Right.html#GrapeCity_Documents_Text_ObjectRect_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the right edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Tag" data-uid="GrapeCity.Documents.Text.ObjectRect.Tag">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Tag.html#GrapeCity_Documents_Text_ObjectRect_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the custom data associated with this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Top" data-uid="GrapeCity.Documents.Text.ObjectRect.Top">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Top.html#GrapeCity_Documents_Text_ObjectRect_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Width" data-uid="GrapeCity.Documents.Text.ObjectRect.Width">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Width.html#GrapeCity_Documents_Text_ObjectRect_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_X" data-uid="GrapeCity.Documents.Text.ObjectRect.X">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.X.html#GrapeCity_Documents_Text_ObjectRect_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Y" data-uid="GrapeCity.Documents.Text.ObjectRect.Y">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Y.html#GrapeCity_Documents_Text_ObjectRect_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>, in graphic units.</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="GrapeCity_Documents_Text_ObjectRect_Contains_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.Contains(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Contains.html#GrapeCity_Documents_Text_ObjectRect_Contains_System_Single_System_Single_">Contains(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified point is contained within this rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_FromLTRB_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.FromLTRB(System.Single,System.Single,System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.FromLTRB.html#GrapeCity_Documents_Text_ObjectRect_FromLTRB_System_Single_System_Single_System_Single_System_Single_">FromLTRB(float, float, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> from (left, top, right, bottom) coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Inflate_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.Inflate(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Inflate.html#GrapeCity_Documents_Text_ObjectRect_Inflate_System_Single_System_Single_">Inflate(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_IntersectsWith_GrapeCity_Documents_Text_ObjectRect_" data-uid="GrapeCity.Documents.Text.ObjectRect.IntersectsWith(GrapeCity.Documents.Text.ObjectRect)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.IntersectsWith.html#GrapeCity_Documents_Text_ObjectRect_IntersectsWith_GrapeCity_Documents_Text_ObjectRect_">IntersectsWith(ObjectRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if this rectangle intersects with <code class="paramref">rect</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Offset_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.Offset(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Offset.html#GrapeCity_Documents_Text_ObjectRect_Offset_System_Single_System_Single_">Offset(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets the rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Scale_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.Scale(System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Scale.html#GrapeCity_Documents_Text_ObjectRect_Scale_System_Single_">Scale(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales all coordinates of a rectangle by the specified scaleFactor.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_Scale_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.ObjectRect.Scale(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Scale.html#GrapeCity_Documents_Text_ObjectRect_Scale_System_Single_System_Single_">Scale(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales all coordinates of a rectangle by the specified scaleX and scaleY.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_ToRectangleF" data-uid="GrapeCity.Documents.Text.ObjectRect.ToRectangleF">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.ToRectangleF.html#GrapeCity_Documents_Text_ObjectRect_ToRectangleF">ToRectangleF()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_op_Explicit_GrapeCity_Documents_Text_ObjectRect__System_Drawing_RectangleF" data-uid="GrapeCity.Documents.Text.ObjectRect.op_Explicit(GrapeCity.Documents.Text.ObjectRect)~System.Drawing.RectangleF">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.op_Explicit.html#GrapeCity_Documents_Text_ObjectRect_op_Explicit_GrapeCity_Documents_Text_ObjectRect__System_Drawing_RectangleF">explicit operator RectangleF(ObjectRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_ObjectRect_op_Explicit_System_Drawing_RectangleF__GrapeCity_Documents_Text_ObjectRect" data-uid="GrapeCity.Documents.Text.ObjectRect.op_Explicit(System.Drawing.RectangleF)~GrapeCity.Documents.Text.ObjectRect">
          <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.op_Explicit.html#GrapeCity_Documents_Text_ObjectRect_op_Explicit_System_Drawing_RectangleF__GrapeCity_Documents_Text_ObjectRect">explicit operator ObjectRect(RectangleF)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> to <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.html">ObjectRect</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
