# C1.C1Preview.C1LinkTarget

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_C1LinkTarget" data-uid="C1.C1Preview.C1LinkTarget" class="text-break">C1LinkTarget Class
</h1>
  <div class="markdown level0 summary"><p>Describes the target of a <a class="xref" href="C1.C1Preview.C1Hyperlink.html">C1Hyperlink</a>.
This is an abstract base class for the following derived classes:
<a class="xref" href="C1.C1Preview.C1LinkTargetDocumentLocation.html">C1LinkTargetDocumentLocation</a>,
<a class="xref" href="C1.C1Preview.C1LinkTargetPage.html">C1LinkTargetPage</a>,
<a class="xref" href="C1.C1Preview.C1LinkTargetAnchor.html">C1LinkTargetAnchor</a>,
<a class="xref" href="C1.C1Preview.C1LinkTargetExternalAnchor.html">C1LinkTargetExternalAnchor</a>,
<a class="xref" href="C1.C1Preview.C1LinkTargetFile.html">C1LinkTargetFile</a>,
<a class="xref" href="C1.C1Preview.C1LinkTargetUser.html">C1LinkTargetUser</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">C1LinkTarget</span></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1LinkTargetAnchor.html">C1LinkTargetAnchor</a></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1LinkTargetDocumentLocation.html">C1LinkTargetDocumentLocation</a></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1LinkTargetFile.html">C1LinkTargetFile</a></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1LinkTargetPage.html">C1LinkTargetPage</a></div>
      <div class="level2"><a class="xref" href="C1.C1Preview.C1LinkTargetUser.html">C1LinkTargetUser</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_C1LinkTarget_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public abstract class C1LinkTarget</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public MustInherit Class C1LinkTarget</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_C1LinkTarget__ctor" data-uid="C1.C1Preview.C1LinkTarget.#ctor">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.-ctor.html#C1_C1Preview_C1LinkTarget__ctor">C1LinkTarget()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.C1LinkTarget.html">C1LinkTarget</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_C1LinkTarget_PdfURL" data-uid="C1.C1Preview.C1LinkTarget.PdfURL">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.PdfURL.html#C1_C1Preview_C1LinkTarget_PdfURL">PdfURL</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the target URL in Adobe PDF format, or an empty string if it does not exist.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1LinkTarget_URL" data-uid="C1.C1Preview.C1LinkTarget.URL">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.URL.html#C1_C1Preview_C1LinkTarget_URL">URL</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the target URL, or an empty string if it does not exist.</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="C1_C1Preview_C1LinkTarget_GetDocumentLocation_System_Int32_C1_C1Preview_C1MultiDocument_" data-uid="C1.C1Preview.C1LinkTarget.GetDocumentLocation(System.Int32,C1.C1Preview.C1MultiDocument)">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.GetDocumentLocation.html#C1_C1Preview_C1LinkTarget_GetDocumentLocation_System_Int32_C1_C1Preview_C1MultiDocument_">GetDocumentLocation(int, C1MultiDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> pointed to by the current link target.</p>
<p>
This method may return null if the position cannot be resolved at this time
(e.g. if the document has not generated yet) or the link target points
to a position outside the document (e.g a URL or an external document).
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1LinkTarget_GetDocumentLocation_System_Int32_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.C1LinkTarget.GetDocumentLocation(System.Int32,C1.C1Preview.C1PrintDocument)">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.GetDocumentLocation.html#C1_C1Preview_C1LinkTarget_GetDocumentLocation_System_Int32_C1_C1Preview_C1PrintDocument_">GetDocumentLocation(int, C1PrintDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="C1.C1Preview.DocumentLocation.html">DocumentLocation</a> pointed to by the current link target.</p>
<p>
This method may return null if the position cannot be resolved at this time
(e.g. if the document has not generated yet) or the link target points
to a position outside the document (e.g a URL or an external document).
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1LinkTarget_GetPageNo_C1_C1Preview_C1Page_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.C1LinkTarget.GetPageNo(C1.C1Preview.C1Page,C1.C1Preview.C1PrintDocument)">
          <a class="xref" href="C1.C1Preview.C1LinkTarget.GetPageNo.html#C1_C1Preview_C1LinkTarget_GetPageNo_C1_C1Preview_C1Page_C1_C1Preview_C1PrintDocument_">GetPageNo(C1Page, C1PrintDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the 1-based number of the page pointed to by the current <a class="xref" href="C1.C1Preview.C1LinkTarget.html">C1LinkTarget</a>.
This method may return 0 if the page cannot be resolved at this time
(e.g. the document has not generated yet).</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
