# GrapeCity.Documents.Word.HyperlinkCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert(GrapeCity.Documents.Word.InsertLocation)">Insert(InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> into this collection at a specified 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 Insert(InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(location As InsertLocation) 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="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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 inserted <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_System_String_System_String_GrapeCity_Documents_Word_InsertLocation_System_String_System_String_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert(System.String,System.String,GrapeCity.Documents.Word.InsertLocation,System.String,System.String)">Insert(string, string, InsertLocation, string, string)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> into this collection at a specified 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 Insert(string anchor, string text, InsertLocation location, string screenTip = null, string target = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(anchor As String, text As String, location As InsertLocation, 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="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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 inserted <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_HyperlinkCollection_Insert_System_Uri_System_String_System_String_GrapeCity_Documents_Word_InsertLocation_System_String_System_String_" data-uid="GrapeCity.Documents.Word.HyperlinkCollection.Insert(System.Uri,System.String,System.String,GrapeCity.Documents.Word.InsertLocation,System.String,System.String)">Insert(Uri, string, string, InsertLocation, string, string)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a> into this collection at a specified 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 Insert(Uri address, string anchor, string text, InsertLocation location, string screenTip = null, string target = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(address As Uri, anchor As String, text As String, location As InsertLocation, 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="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</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 inserted <a class="xref" href="GrapeCity.Documents.Word.Hyperlink.html">Hyperlink</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
