Component: TPdfView · Unit: PDFium
Čita ili upisuje programski model odabira teksta u TPdfView bez potrebe za korisničkim unosom mišem
Syntax
function SelectionRanges: TPdfUserSelectionRanges;
Return Value
TPdfUserSelectionRanges. A copy of the current page-and-character selection ranges
Description
Članovi odabira izlažu 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 names, type names, and PDF terms keep their original spelling so code search remains reliable
- Call the member only after the owning document or viewer is active unless the syntax describes an event or design-time property
Example
if PdfView1.SelectTextRange(1, 0, 40) then
Memo1.Lines.Text := PdfView1.SelectedText;
See Also