# C1.C1Preview.C1Anchor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_C1Anchor" data-uid="C1.C1Preview.C1Anchor" class="text-break">C1Anchor Class
</h1>
  <div class="markdown level0 summary"><p>Represents an anchor within a document.
One or more anchors can be associated with a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>
via the <a class="xref" href="C1.C1Preview.RenderObject.Anchors.html#C1_C1Preview_RenderObject_Anchors">Anchors</a> property on the object.
An anchor (and thus the render object associated with it) can be the
target of a <a class="xref" href="C1.C1Preview.C1Hyperlink.html">C1Hyperlink</a> if that hyperlink's <a class="xref" href="C1.C1Preview.C1Hyperlink.LinkTarget.html#C1_C1Preview_C1Hyperlink_LinkTarget">LinkTarget</a>
is a <a class="xref" href="C1.C1Preview.C1LinkTargetAnchor.html">C1LinkTargetAnchor</a> and that anchor's <a class="xref" href="C1.C1Preview.C1LinkTargetAnchor.AnchorName.html#C1_C1Preview_C1LinkTargetAnchor_AnchorName">AnchorName</a>
is set to that anchor's <a class="xref" href="C1.C1Preview.C1Anchor.Name.html#C1_C1Preview_C1Anchor_Name">Name</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">C1Anchor</span></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1AnchorText.html">C1AnchorText</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_C1Anchor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class C1Anchor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class C1Anchor</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="C1_C1Preview_C1Anchor__ctor" data-uid="C1.C1Preview.C1Anchor.#ctor">
          <a class="xref" href="C1.C1Preview.C1Anchor.-ctor.html#C1_C1Preview_C1Anchor__ctor">C1Anchor()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Anchor__ctor_System_String_" data-uid="C1.C1Preview.C1Anchor.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.C1Anchor.-ctor.html#C1_C1Preview_C1Anchor__ctor_System_String_">C1Anchor(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Anchor__ctor_System_String_System_String_" data-uid="C1.C1Preview.C1Anchor.#ctor(System.String,System.String)">
          <a class="xref" href="C1.C1Preview.C1Anchor.-ctor.html#C1_C1Preview_C1Anchor__ctor_System_String_System_String_">C1Anchor(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Anchor__ctor_System_String_System_String_System_Object_" data-uid="C1.C1Preview.C1Anchor.#ctor(System.String,System.String,System.Object)">
          <a class="xref" href="C1.C1Preview.C1Anchor.-ctor.html#C1_C1Preview_C1Anchor__ctor_System_String_System_String_System_Object_">C1Anchor(string, string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> class.</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="C1_C1Preview_C1Anchor_Description" data-uid="C1.C1Preview.C1Anchor.Description">
          <a class="xref" href="C1.C1Preview.C1Anchor.Description.html#C1_C1Preview_C1Anchor_Description">Description</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the description of the current anchor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Anchor_Name" data-uid="C1.C1Preview.C1Anchor.Name">
          <a class="xref" href="C1.C1Preview.C1Anchor.Name.html#C1_C1Preview_C1Anchor_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the current anchor (must be unique within the document).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Anchor_UserData" data-uid="C1.C1Preview.C1Anchor.UserData">
          <a class="xref" href="C1.C1Preview.C1Anchor.UserData.html#C1_C1Preview_C1Anchor_UserData">UserData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the custom user data associated with the current anchor.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
