ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.SelectLine

TIEPdfViewerInteraction.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.

Notes:
- 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 ScrToCharIndex


Example

ImageEnView1.PdfViewer.SelectLine( 100 );


See Also

- ClearSelection
- SelectText
- SelectAll
- SelectWord
- SelLength
- SelStart
- SelText