# GrapeCity.Documents.Text.AnchoredObject

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Text_AnchoredObject" data-uid="GrapeCity.Documents.Text.AnchoredObject" class="text-break">AnchoredObject Class
</h1>
  <div class="markdown level0 summary"><p>Represents an embedded object that is anchored to some text position.</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"><a class="xref" href="GrapeCity.Documents.Text.Inline.html">Inline</a></div>
    <div class="level2"><span class="xref">AnchoredObject</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_AnchoredObject_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AnchoredObject : Inline</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AnchoredObject
    Inherits Inline</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_AnchoredObject__ctor" data-uid="GrapeCity.Documents.Text.AnchoredObject.#ctor">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.-ctor.html#GrapeCity_Documents_Text_AnchoredObject__ctor">AnchoredObject()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject__ctor_GrapeCity_Documents_Text_AnchoredObject_" data-uid="GrapeCity.Documents.Text.AnchoredObject.#ctor(GrapeCity.Documents.Text.AnchoredObject)">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.-ctor.html#GrapeCity_Documents_Text_AnchoredObject__ctor_GrapeCity_Documents_Text_AnchoredObject_">AnchoredObject(AnchoredObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_" data-uid="GrapeCity.Documents.Text.AnchoredObject.#ctor(System.Single,System.Single,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.-ctor.html#GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_">AnchoredObject(float, float, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_GrapeCity_Documents_Text_HorizontalPosition_GrapeCity_Documents_Text_VerticalPosition_" data-uid="GrapeCity.Documents.Text.AnchoredObject.#ctor(System.Single,System.Single,System.Boolean,GrapeCity.Documents.Text.HorizontalPosition,GrapeCity.Documents.Text.VerticalPosition)">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.-ctor.html#GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_GrapeCity_Documents_Text_HorizontalPosition_GrapeCity_Documents_Text_VerticalPosition_">AnchoredObject(float, float, bool, HorizontalPosition, VerticalPosition)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_GrapeCity_Documents_Text_HorizontalPosition_GrapeCity_Documents_Text_VerticalPosition_System_Single_System_Single_" data-uid="GrapeCity.Documents.Text.AnchoredObject.#ctor(System.Single,System.Single,System.Boolean,GrapeCity.Documents.Text.HorizontalPosition,GrapeCity.Documents.Text.VerticalPosition,System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.-ctor.html#GrapeCity_Documents_Text_AnchoredObject__ctor_System_Single_System_Single_System_Boolean_GrapeCity_Documents_Text_HorizontalPosition_GrapeCity_Documents_Text_VerticalPosition_System_Single_System_Single_">AnchoredObject(float, float, bool, HorizontalPosition, VerticalPosition, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</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_AnchoredObject_AttachToPreviousChar" data-uid="GrapeCity.Documents.Text.AnchoredObject.AttachToPreviousChar">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.AttachToPreviousChar.html#GrapeCity_Documents_Text_AnchoredObject_AttachToPreviousChar">AttachToPreviousChar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if the object should be attached to the previous
visible character (True) or to the next visible character (False).</p>
<p>The default is false.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_ContentObjectRect" data-uid="GrapeCity.Documents.Text.AnchoredObject.ContentObjectRect">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.ContentObjectRect.html#GrapeCity_Documents_Text_AnchoredObject_ContentObjectRect">ContentObjectRect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a rectangular area occupied by an embedded object, or 'null'.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_Height" data-uid="GrapeCity.Documents.Text.AnchoredObject.Height">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.Height.html#GrapeCity_Documents_Text_AnchoredObject_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_HorizontalOffset" data-uid="GrapeCity.Documents.Text.AnchoredObject.HorizontalOffset">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.HorizontalOffset.html#GrapeCity_Documents_Text_AnchoredObject_HorizontalOffset">HorizontalOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal offset relative to the specified position, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_HorizontalPosition" data-uid="GrapeCity.Documents.Text.AnchoredObject.HorizontalPosition">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.HorizontalPosition.html#GrapeCity_Documents_Text_AnchoredObject_HorizontalPosition">HorizontalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal position of the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
<p>The default is <a class="xref" href="GrapeCity.Documents.Text.HorizontalPosition.html#GrapeCity_Documents_Text_HorizontalPosition_CharCenter">CharCenter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_KeepInHorizontalBounds" data-uid="GrapeCity.Documents.Text.AnchoredObject.KeepInHorizontalBounds">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInHorizontalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInHorizontalBounds">KeepInHorizontalBounds</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if the anchored object should not appear beyond the horizontal
bounds specified by the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MinLeft.html#GrapeCity_Documents_Text_AnchoredObject_MinLeft">MinLeft</a> and <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MaxRight.html#GrapeCity_Documents_Text_AnchoredObject_MaxRight">MaxRight</a> properties.</p>
<p>The default is false.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_KeepInVerticalBounds" data-uid="GrapeCity.Documents.Text.AnchoredObject.KeepInVerticalBounds">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInVerticalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInVerticalBounds">KeepInVerticalBounds</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if the anchored object should not appear beyond the vertical
bounds specified by the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MinTop.html#GrapeCity_Documents_Text_AnchoredObject_MinTop">MinTop</a> and <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MaxBottom.html#GrapeCity_Documents_Text_AnchoredObject_MaxBottom">MaxBottom</a> properties.</p>
<p>The default is false.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_MaxBottom" data-uid="GrapeCity.Documents.Text.AnchoredObject.MaxBottom">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MaxBottom.html#GrapeCity_Documents_Text_AnchoredObject_MaxBottom">MaxBottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Bottom.html#GrapeCity_Documents_Text_ObjectRect_Bottom">Bottom</a> value of the anchored object, in graphic units.</p>
<p>
The assigned value is ignored unless the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInVerticalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInVerticalBounds">KeepInVerticalBounds</a> property is set to true.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_MaxRight" data-uid="GrapeCity.Documents.Text.AnchoredObject.MaxRight">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MaxRight.html#GrapeCity_Documents_Text_AnchoredObject_MaxRight">MaxRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Right.html#GrapeCity_Documents_Text_ObjectRect_Right">Right</a> value of the anchored object, in graphic units.</p>
<p>
The assigned value is ignored unless the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInHorizontalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInHorizontalBounds">KeepInHorizontalBounds</a> property is set to true.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_MinLeft" data-uid="GrapeCity.Documents.Text.AnchoredObject.MinLeft">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MinLeft.html#GrapeCity_Documents_Text_AnchoredObject_MinLeft">MinLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Left.html#GrapeCity_Documents_Text_ObjectRect_Left">Left</a> value of the anchored object, in graphic units.</p>
<p>
The assigned value is ignored unless the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInHorizontalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInHorizontalBounds">KeepInHorizontalBounds</a> property is set to true.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_MinTop" data-uid="GrapeCity.Documents.Text.AnchoredObject.MinTop">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.MinTop.html#GrapeCity_Documents_Text_AnchoredObject_MinTop">MinTop</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum <a class="xref" href="GrapeCity.Documents.Text.ObjectRect.Top.html#GrapeCity_Documents_Text_ObjectRect_Top">Top</a> value of the anchored object, in graphic units.</p>
<p>
The assigned value is ignored unless the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.KeepInVerticalBounds.html#GrapeCity_Documents_Text_AnchoredObject_KeepInVerticalBounds">KeepInVerticalBounds</a> property is set to true.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_Object" data-uid="GrapeCity.Documents.Text.AnchoredObject.Object">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.Object.html#GrapeCity_Documents_Text_AnchoredObject_Object">Object</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the embedded object referenced by the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_ObjectRect" data-uid="GrapeCity.Documents.Text.AnchoredObject.ObjectRect">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.ObjectRect.html#GrapeCity_Documents_Text_AnchoredObject_ObjectRect">ObjectRect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a rectangular area which is excluded from text layout, or 'null'.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_VerticalOffset" data-uid="GrapeCity.Documents.Text.AnchoredObject.VerticalOffset">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.VerticalOffset.html#GrapeCity_Documents_Text_AnchoredObject_VerticalOffset">VerticalOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical offset relative to the specified position, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_VerticalPosition" data-uid="GrapeCity.Documents.Text.AnchoredObject.VerticalPosition">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.VerticalPosition.html#GrapeCity_Documents_Text_AnchoredObject_VerticalPosition">VerticalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical position of the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>.</p>
<p>The default is <a class="xref" href="GrapeCity.Documents.Text.VerticalPosition.html#GrapeCity_Documents_Text_VerticalPosition_CharCenter">CharCenter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_Width" data-uid="GrapeCity.Documents.Text.AnchoredObject.Width">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.Width.html#GrapeCity_Documents_Text_AnchoredObject_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.html">AnchoredObject</a>, in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_WrapSide" data-uid="GrapeCity.Documents.Text.AnchoredObject.WrapSide">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.WrapSide.html#GrapeCity_Documents_Text_AnchoredObject_WrapSide">WrapSide</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying how text wraps around the sides of an anchored object.</p>
<p>The default is <a class="xref" href="GrapeCity.Documents.Text.WrapSide.html#GrapeCity_Documents_Text_WrapSide_Both">Both</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_WrapWithText" data-uid="GrapeCity.Documents.Text.AnchoredObject.WrapWithText">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.WrapWithText.html#GrapeCity_Documents_Text_AnchoredObject_WrapWithText">WrapWithText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if the anchored object should affect text layout.</p>
<p>The default is false.</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_AnchoredObject_GetCharCount" data-uid="GrapeCity.Documents.Text.AnchoredObject.GetCharCount">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.GetCharCount.html#GrapeCity_Documents_Text_AnchoredObject_GetCharCount">GetCharCount()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of UTF-16 characters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Text_AnchoredObject_GetChars" data-uid="GrapeCity.Documents.Text.AnchoredObject.GetChars">
          <a class="xref" href="GrapeCity.Documents.Text.AnchoredObject.GetChars.html#GrapeCity_Documents_Text_AnchoredObject_GetChars">GetChars()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the string of UTF-16 characters.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
