# GrapeCity.ActiveReports.Viewer.Wpf.Viewer.HyperLink

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_HyperLink" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.HyperLink" class="text-break">HyperLink Event
</h1>
<div class="markdown level0 summary"><p>Occurs when a hyperlink is clicked in the currently opened document.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Viewer.Wpf.html">GrapeCity.ActiveReports.Viewer.Wpf</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
<h5 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_HyperLink_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event HyperLinkEventHandler 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="../MESCIUS.ActiveReports.Viewer.Common/GrapeCity.ActiveReports.Viewer.Win.HyperLinkEventHandler.html">HyperLinkEventHandler</a></td>
      <td>Occurs when a hyperlink is clicked in the currently opened document.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_HyperLink_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">viewer.HyperLink += (sender, e) =&gt;
{
    // Check if the hyperlink is not null or empty
    if (!string.IsNullOrEmpty(e.HyperLink))
    {
        // Open the hyperlink in the default web browser
        System.Diagnostics.Process.Start(e.HyperLink);
        // Optionally, set Handled to true to prevent the default behavior
        e.Handled = true;
    }
};</code></pre>

</div>
