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

TdxPDFViewerOnAttachmentActionEvent Type

The procedural type of an attachment-related action event.

#Declaration

Delphi
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