function SelectLineAt(Page, CharIndex: Integer): Boolean;
| Page | Integer. One-based page number |
| CharIndex | Integer. Zero-based character index within the page |
SelectLineAt examines the neighbouring character boxes around CharIndex and selects the contiguous range on the same visual line
The method uses the same visual line boundaries as triple-click selection and Shift+Home or Shift+End, then updates selection painting and OnSelectionChange through the standard selection pipeline
Page is one-based and CharIndex is zero-basedFalse without altering the selection when the viewer is inactive or either index is invalidAllowUserTextSelectionif PdfView1.SelectLineAt(1, 0) then
Memo1.Lines.Text := PdfView1.SelectedText;