[]
Occurs when a hyperlink is clicked in the currently opened document.
public event HyperLinkEventHandler HyperLink
Type | Description |
---|---|
HyperLinkEventHandler | Occurs when a hyperlink is clicked in the currently opened document. |
viewer.HyperLink += (sender, e) =>
{
// 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;
}
};