# GrapeCity.Documents.Excel.IHyperlinks.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IHyperlinks_Add_" data-uid="GrapeCity.Documents.Excel.IHyperlinks.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IHyperlinks_Add_" data-uid="GrapeCity.Documents.Excel.IHyperlinks.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_IHyperlinks_Add_GrapeCity_Documents_Excel_IRange_System_String_System_String_System_String_System_String_" data-uid="GrapeCity.Documents.Excel.IHyperlinks.Add(GrapeCity.Documents.Excel.IRange,System.String,System.String,System.String,System.String)">Add(IRange, string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds a hyperlink to the specified range (<a class="xref" href="GrapeCity.Documents.Excel.IHyperlink.html">IHyperlink</a> object).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IHyperlink Add(IRange anchor, string address, string subAddress = &quot;&quot;, string screenTip = &quot;&quot;, string textToDisplay = &quot;&quot;)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(anchor As IRange, address As String, Optional subAddress As String = &quot;&quot;, Optional screenTip As String = &quot;&quot;, Optional textToDisplay As String = &quot;&quot;) As IHyperlink</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.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">anchor</span></td>
      <td><p>Required <a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a>The anchor for the 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">address</span></td>
      <td><p>Required String. The address of the 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">subAddress</span></td>
      <td><p>Optional Object. The subaddress of the 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>Optional Object. The screen tip to be displayed when the mouse pointer is paused over the 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">textToDisplay</span></td>
      <td><p>Optional Object. The text to be displayed for the 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.Excel.IHyperlink.html">IHyperlink</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_IHyperlinks_Add_" data-uid="GrapeCity.Documents.Excel.IHyperlinks.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_IHyperlinks_Add_GrapeCity_Documents_Excel_Drawing_IShape_System_String_System_String_System_String_System_String_" data-uid="GrapeCity.Documents.Excel.IHyperlinks.Add(GrapeCity.Documents.Excel.Drawing.IShape,System.String,System.String,System.String,System.String)">Add(IShape, string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds a hyperlink to the specified shape (<a class="xref" href="GrapeCity.Documents.Excel.IHyperlink.html">IHyperlink</a> object).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IHyperlink Add(IShape shape, string address, string subAddress = &quot;&quot;, string screenTip = &quot;&quot;, string textToDisplay = &quot;&quot;)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Add(shape As IShape, address As String, Optional subAddress As String = &quot;&quot;, Optional screenTip As String = &quot;&quot;, Optional textToDisplay As String = &quot;&quot;) As IHyperlink</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.Excel.Drawing.IShape.html">IShape</a></td>
      <td><span class="parametername">shape</span></td>
      <td><p>Required <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShape.html">IShape</a>The shape for the 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">address</span></td>
      <td><p>Required String. The address of the 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">subAddress</span></td>
      <td><p>Optional Object. The subaddress of the 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>Optional Object. The screen tip to be displayed when the mouse pointer is paused over the 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">textToDisplay</span></td>
      <td><p>Optional Object. The text to be displayed for the 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.Excel.IHyperlink.html">IHyperlink</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
