Skip to main content

TdxPDFCustomViewer.OnSelectionChanged Event

Enables you to respond to content selection changes in the loaded PDF document.

Declaration

property OnSelectionChanged: TNotifyEvent read; write;

Remarks

This event is fired in response to:

  • Calling the PDF Viewer’s Selection.Select and Selection.SelectText procedure;

  • Clearing the existing selection by calling the control’s Selection.Clear procedure;

  • Selecting or deselecting an image/rectangular portion of an image by using the mouse;

  • Positioning the caret within the document text and expanding/shrinking the current text selection by using the mouse or corresponding keystrokes.

The Sender parameter specifies the PDF Viewer control that raised this event.

See Also