Skip to main content

TdxPDFViewerOnAttachmentActionEvent Type

The procedural type of an attachment-related action event.

Declaration

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

Parameters

Name Type
Sender TdxPDFCustomViewer
AAttachment TdxPDFFileAttachment
AHandled Boolean

Remarks

The Sender parameter provides access to the PDF Viewer control that raised a TdxPDFViewerOnAttachmentActionEvent event. Use the AAttachment parameter to identify and access the PDF document or page attachment that is about to be opened or saved.

Set the AHandled parameter to True if you need to disable the default attachment activation routines for all or only specific file attachments when a TdxPDFViewerOnAttachmentActionEvent event occurs.

The PDF Viewer control’s OnAttachmentOpen and OnAttachmentSave events reference the TdxPDFViewerOnAttachmentActionEvent type.

See Also