# GrapeCity.Documents.Text.TextRect

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Text_TextRect" data-uid="GrapeCity.Documents.Text.TextRect" class="text-break">TextRect Class
</h1>
  <div class="markdown level0 summary"><p>Defines the rectangle for a text fragment in <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a>.</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">TextRect</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_TextRect_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextRect</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextRect</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_TextRect__ctor_System_Int32_System_Int32_System_Single_System_Single_System_Single_System_Single_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Text.TextRect.#ctor(System.Int32,System.Int32,System.Single,System.Single,System.Single,System.Single,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.-ctor.html#GrapeCity_Documents_Text_TextRect__ctor_System_Int32_System_Int32_System_Single_System_Single_System_Single_System_Single_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">TextRect(int, int, float, float, float, float, bool, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a> class with the specified coordinates, size, and flags.</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_TextRect_Bottom" data-uid="GrapeCity.Documents.Text.TextRect.Bottom">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Bottom.html#GrapeCity_Documents_Text_TextRect_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the y-coordinate of the bottom edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_CodePointCount" data-uid="GrapeCity.Documents.Text.TextRect.CodePointCount">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.CodePointCount.html#GrapeCity_Documents_Text_TextRect_CodePointCount">CodePointCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of text fragment's code points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_CodePointIndex" data-uid="GrapeCity.Documents.Text.TextRect.CodePointIndex">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.CodePointIndex.html#GrapeCity_Documents_Text_TextRect_CodePointIndex">CodePointIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the text fragment's first code point.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Height" data-uid="GrapeCity.Documents.Text.TextRect.Height">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Height.html#GrapeCity_Documents_Text_TextRect_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the height of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Left" data-uid="GrapeCity.Documents.Text.TextRect.Left">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Left.html#GrapeCity_Documents_Text_TextRect_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Right" data-uid="GrapeCity.Documents.Text.TextRect.Right">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Right.html#GrapeCity_Documents_Text_TextRect_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the x-coordinate of the right edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_RightToLeft" data-uid="GrapeCity.Documents.Text.TextRect.RightToLeft">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.RightToLeft.html#GrapeCity_Documents_Text_TextRect_RightToLeft">RightToLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates if the text fragment should appear from right to left.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_RotateSidewaysCounterclockwise" data-uid="GrapeCity.Documents.Text.TextRect.RotateSidewaysCounterclockwise">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.RotateSidewaysCounterclockwise.html#GrapeCity_Documents_Text_TextRect_RotateSidewaysCounterclockwise">RotateSidewaysCounterclockwise</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates if sideways should be rotated counterclockwise.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Sideways" data-uid="GrapeCity.Documents.Text.TextRect.Sideways">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Sideways.html#GrapeCity_Documents_Text_TextRect_Sideways">Sideways</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates if the text fragment should appear rotated 90 or -90 degrees.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Top" data-uid="GrapeCity.Documents.Text.TextRect.Top">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Top.html#GrapeCity_Documents_Text_TextRect_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Vertical" data-uid="GrapeCity.Documents.Text.TextRect.Vertical">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Vertical.html#GrapeCity_Documents_Text_TextRect_Vertical">Vertical</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates if the text fragment should appear upright with vertical reading direction.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Width" data-uid="GrapeCity.Documents.Text.TextRect.Width">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Width.html#GrapeCity_Documents_Text_TextRect_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_X" data-uid="GrapeCity.Documents.Text.TextRect.X">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.X.html#GrapeCity_Documents_Text_TextRect_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_TextRect_Y" data-uid="GrapeCity.Documents.Text.TextRect.Y">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.Y.html#GrapeCity_Documents_Text_TextRect_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</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_TextRect_ToRectangleF" data-uid="GrapeCity.Documents.Text.TextRect.ToRectangleF">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.ToRectangleF.html#GrapeCity_Documents_Text_TextRect_ToRectangleF">ToRectangleF()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</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_TextRect_op_Explicit_GrapeCity_Documents_Text_TextRect__System_Drawing_RectangleF" data-uid="GrapeCity.Documents.Text.TextRect.op_Explicit(GrapeCity.Documents.Text.TextRect)~System.Drawing.RectangleF">
          <a class="xref" href="GrapeCity.Documents.Text.TextRect.op_Explicit.html#GrapeCity_Documents_Text_TextRect_op_Explicit_GrapeCity_Documents_Text_TextRect__System_Drawing_RectangleF">explicit operator RectangleF(TextRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="GrapeCity.Documents.Text.TextRect.html">TextRect</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
