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 for attachment action events.

#Declaration

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

#Parameters

Name Type Description
Sender TdxPDFCustomViewer

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.
True
Built-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.OnAttachmentOpen
Enables you to respond to an attempt to open a file attached to the opened PDF document.
TdxPDFCustomViewer.OnAttachmentSave
Allows you to prevent users from saving certain PDF document attachments.
See Also