Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Scheduler (new)
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Interactive Forms
   [Collapse]Navigation
     Navigation Pane
     Bookmarks
     Thumbnails
     Hyperlinks
   [Expand]Interactivity
   [Expand]Examples
  [Expand]TreeMap Control
  [Expand]Diagram Control
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Hyperlinks

This document introduces hyperlinks and explains how to customize hyperlink opening behavior.

A hyperlink is a reference to data that you can directly follow by clicking a document page. Hyperlinks can point to a page, an external document or to URI (uniform resource identifier).

To navigate to a specific location within a document, click a link that refers to that location.

If you click a hyperlink addressing an external URI, the PdfViewerControl.UriOpening event is handled.

The PdfViewerControl.UriOpening event allows you to customize the URI opening behavior. If you set the e.Handled property to false (the default value is true) and click a hyperlink, this invokes a Security Warning message box.

The Security Warning message box warns you that the PDF Viewer will use an external resource to open the URI.

Click Yes to open the URI in the PDF Viewer, otherwise click No. You can prevent URI opening without using the message box (e.Handled should be set to true) by setting the UriOpeningEventArgs.Cancel property to true.

When you click a link in a PDF document to open an embedded or external document, the PdfViewerControl.ReferencedDocumentOpening event is raised. You can obtain the document source using the ReferencedDocumentOpeningEventArgs.DocumentSource property and get information about whether or not the referenced document was opened in an external application using the ReferencedDocumentOpeningEventArgs.OpenInNewWindow property.

How would you rate this topic?​​​​​​​