# GrapeCity.Documents.Word.HyperlinkCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_HyperlinkCollection_Add_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_HyperlinkCollection_Add_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Add" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add">Add()</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Hyperlink Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As Hyperlink</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_HyperlinkCollection_Add_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Add_System_String_System_String_System_String_System_String_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add(System.String,System.String,System.String,System.String)">Add(string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Hyperlink Add(string anchor, string text, string screenTip = null, string target = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(anchor As String, text As String, Optional screenTip As String = Nothing, Optional target As String = Nothing) As Hyperlink</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">anchor</span></td>
      <td><p>The name of a bookmark in the current document which shall be the target of this hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The display text of the specified hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">screenTip</span></td>
      <td><p>The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">target</span></td>
      <td><p>The name of the frame or window in which you want to load the specified hyperlink.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_HyperlinkCollection_Add_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Add_System_Uri_System_String_System_String_System_String_System_String_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Add(System.Uri,System.String,System.String,System.String,System.String)">Add(Uri, string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Hyperlink Add(Uri address, string anchor, string text, string screenTip = null, string target = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(address As Uri, anchor As String, text As String, Optional screenTip As String = Nothing, Optional target As String = Nothing) As Hyperlink</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Uri</span></td>
      <td><span class="parametername">address</span></td>
      <td><p>The address for the specified link. The address can be an e-mail address, an Internet address, or a file name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">anchor</span></td>
      <td><p>The name of a bookmark in the current document which shall be the target of this hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The display text of the specified hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">screenTip</span></td>
      <td><p>The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">target</span></td>
      <td><p>The name of the frame or window in which you want to load the specified hyperlink.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
