Component: TPdfView · Unit: PDFium
Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input
Syntax
function SelectionRectangles: TPdfRectangles;
Return Value
TPdfRectangles. Page-coordinate rectangles covering the current selection
Description
The selection members expose the same page and character-index model used by viewer selection painting. Calls validate page numbers and character ranges before changing the selection
Programmatic selection works independently of user input options, then repaints the viewer and raises OnSelectionChange through the normal selection pipeline
Remarks
- Τα ονόματα API, ονόματα τύπων και όροι PDF διατηρούν την αρχική τους ορθογραφία ώστε η αναζήτηση κώδικα να παραμένει αξιόπιστη
- Καλέστε το μέλος μόνο αφού το έγγραφο ή ο προβολέας είναι ενεργό, εκτός αν η σύνταξη περιγράφει συμβάν ή ιδιότητα σχεδίασης
Example
if PdfView1.SelectTextRange(1, 0, 40) then
Memo1.Lines.Text := PdfView1.SelectedText;
See Also