Back to Devexpress

TdxPDFViewerOnAttachmentActionEvent Type

vcl-dxpdfviewer-d8e68759.md

latest2.1 KB
Original Source

TdxPDFViewerOnAttachmentActionEvent Type

The procedural type for attachment action events.

Declaration

delphi
TdxPDFViewerOnAttachmentActionEvent = procedure(Sender: TdxPDFCustomViewer; AAttachment: TdxPDFFileAttachment; var AHandled: Boolean) of object;

Parameters

NameTypeDescription
SenderTdxPDFCustomViewer

Provides access to the PDF Viewer control that raised the attachment action event.

Cast the Sender parameter to the TdxPDFViewer class to access all public API members.

| | AAttachment | TdxPDFFileAttachment |

Provides access to the target attachment.

Use this parameter to identify specific document attachments.

| | AHandled | Boolean | False Default. The Sender PDF Viewer control executes the built-in command associated with the current attachment action.TrueBuilt-in attachment action routines are disabled. Use this option if you need to implement a custom attachment action or prevent users from interacting with specific attachments. |

Remarks

An attachment action event occurs every time a user triggers an attachment open or save command.

Direct TdxPDFViewerOnAttachmentActionEvent Type References

The following events reference the TdxPDFViewerOnAttachmentActionEvent procedural type:

TdxPDFCustomViewer.OnAttachmentOpenEnables you to respond to an attempt to open a file attached to the opened PDF document.TdxPDFCustomViewer.OnAttachmentSaveAllows you to prevent users from saving certain PDF document attachments. See Also

TdxPDFViewerOnHyperlinkClickEvent Procedural Type

dxPDFViewer Unit