'Declaration
Public Event PdfUriNavigation As GdViewer.PdfUriNavigationHandler
public event GdViewer.PdfUriNavigationHandler PdfUriNavigation
public event PdfUriNavigation: GdViewer.PdfUriNavigationHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.PdfUriNavigationHandler* PdfUriNavigation
public: event GdViewer.PdfUriNavigationHandler^ PdfUriNavigation
Event Data
The event handler receives an argument of type GdViewer.PdfUriNavigationEventArgs containing data related to this event. The following GdViewer.PdfUriNavigationEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Allows to cancel the subsequent URI navigation action when you turn this parameter to true in the raised event. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
URI | A uniform resource identifier (URI) as a string. |
Remarks
This event is only meaningful for PDF documents and it is solely raised only if the PdfEnableLinks property is set to true. At the same, this event only handles the URI action defined in the PDF documents.
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated 'and the PdfUriNavigation event has been properly added. 'Enabling the URI navigation handling. PdfEnableLinks = True 'Define the event. Sub GdViewer1_PdfUriNavigation(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.PdfUriNavigationEventArgs) MessageBox.Show("The URI is: " + e.URI, "GdViewer.PdfUriNavigation") 'Turning this parameter to true disables automatic handling of the specified URI by the toolkit. e.Cancel = True End Sub
//We assume that the GdViewer1 control has been properly integrated //and the PdfUriNavigation event has been properly added. //Enabling the URI navigation handling. PdfEnableLinks = true; //Define the event. void GdViewer1_PdfUriNavigation(object sender, GdPicture14.WPF.GdViewer.PdfUriNavigationEventArgs e) { MessageBox.Show("The URI is: " + e.URI, "GdViewer.PdfUriNavigation"); //Turning this parameter to true disables automatic handling of the specified URI by the toolkit. e.Cancel = true; }
See Also