Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFViewerOnHyperlinkClickEvent Type

The PDF Viewer control’s hyperlink activation event type.

#Declaration

Delphi
TdxPDFViewerOnHyperlinkClickEvent = procedure(Sender: TdxPDFCustomViewer; const AURI: string; var AHandled: Boolean) of object;

#Parameters

Name Type
Sender TdxPDFCustomViewer
AURI string
AHandled Boolean

#Remarks

Use the Sender parameter to refer to the PDF Viewer control that raised the OnHyperlinkClick event. To access the control’s type-specific properties, cast the parameter to the TdxPDFViewer class.

The AURI parameter returns the universal resource identifier of the hyperlink clicked by an end-user. Use this parameter to identify which hyperlink an end-user activates and respond differently to clicking different hyperlinks. For instance, you can identify a hyperlink as external and invoke a notification or confirmation message box on clicking the hyperlink.

To disable the default hyperlink activation routines, set the AHandled parameter to True within your OnHyperlinkClick event handler.

The PDF Viewer control’s OnHyperlinkClick event references the TdxPDFViewerOnHyperlinkClickEvent type.

See Also