# C1.C1Word.Objects.RtfHyperlink.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Word_Objects_RtfHyperlink__ctor_" data-uid="C1.C1Word.Objects.RtfHyperlink.#ctor*">RtfHyperlink Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Word_Objects_RtfHyperlink__ctor_" data-uid="C1.C1Word.Objects.RtfHyperlink.#ctor*"></a>
<h4 id="C1_C1Word_Objects_RtfHyperlink__ctor_System_String_" data-uid="C1.C1Word.Objects.RtfHyperlink.#ctor(System.String)">RtfHyperlink(string)</h4>
<div class="markdown level1 summary"><p>The Word/RTF hyperlink constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfHyperlink(string target)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(target As String)</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">target</span></td>
      <td><p>The target object (URL, bookmark ...) as string.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Objects_RtfHyperlink__ctor_" data-uid="C1.C1Word.Objects.RtfHyperlink.#ctor*"></a>
<h4 id="C1_C1Word_Objects_RtfHyperlink__ctor_System_String_System_Drawing_Color_C1_C1Word_RtfUnderlineStyle_" data-uid="C1.C1Word.Objects.RtfHyperlink.#ctor(System.String,System.Drawing.Color,C1.C1Word.RtfUnderlineStyle)">RtfHyperlink(string, Color, RtfUnderlineStyle)</h4>
<div class="markdown level1 summary"><p>The Word/RTF hyperlink constructor with attributes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfHyperlink(string target, Color color, RtfUnderlineStyle underline)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(target As String, color As Color, underline As RtfUnderlineStyle)</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">target</span></td>
      <td><p>The target object (URL, bookmark ...) as string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The text color of the hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Word.RtfUnderlineStyle.html">RtfUnderlineStyle</a></td>
      <td><span class="parametername">underline</span></td>
      <td><p>The underline type of the hyperlink.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
