# C1.WPF.RichTextBox.EditExtensions.MakeHyperlink

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_EditExtensions_MakeHyperlink_" data-uid="C1.WPF.RichTextBox.EditExtensions.MakeHyperlink*">MakeHyperlink Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_EditExtensions_MakeHyperlink_" data-uid="C1.WPF.RichTextBox.EditExtensions.MakeHyperlink*"></a>
<h4 id="C1_WPF_RichTextBox_EditExtensions_MakeHyperlink_C1_WPF_RichTextBox_Documents_C1TextRange_System_Uri_System_String_" data-uid="C1.WPF.RichTextBox.EditExtensions.MakeHyperlink(C1.WPF.RichTextBox.Documents.C1TextRange,System.Uri,System.String)">MakeHyperlink(C1TextRange, Uri, string)</h4>
<div class="markdown level1 summary"><p>Makes a text range into a hyperlink.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void MakeHyperlink(this C1TextRange range, Uri uri, string targetName = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub MakeHyperlink(range As C1TextRange, uri As Uri, Optional targetName As String = Nothing)</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="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a> to make into a hyperlink.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a></td>
      <td><span class="parametername">uri</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a> 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">targetName</span></td>
      <td><p>A TargetName for the hyperlink</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_RichTextBox_EditExtensions_MakeHyperlink_C1_WPF_RichTextBox_Documents_C1TextRange_System_Uri_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the range spans several blocks this method generates a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Hyperlink.html">C1Hyperlink</a> element per block.</p>
</div>
</div>
