ImageEn, unit iexUserInteractions |
|
TIEPdfViewer.SelectLine
Declaration
function SelectLine(CharIndex: Integer; DoScroll: Boolean = False): Boolean;
Description
Selects a line within the current page.
If
DoScroll is enabled the view is scrolled to ensure the selection is visible.
Note:
◼ CharIndex is zero-based
◼ To convert CharIndex/Length to a screen position, use
GetTextRects◼ Specify the color and other properties of text selection using
PdfViewerDefaults◼ To convert a screen position to a CharIndex, use
ScrToCharIndexExample
ImageEnView1.PdfViewer.SelectLine( 100 );
See Also
◼ ClearSelection◼ SelectText◼ SelectAll◼ SelectWord◼ SelLength◼ SelStart◼ SelText