ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.EnsureTextVisible

TIEPdfViewerInteraction.EnsureTextVisible


Declaration

procedure EnsureTextVisible(TextStart, TextLength: Integer);


Description

Ensures the specified text (of the current page) is visible on screen. If not, the view is scrolled to show the text.

Note: Only vertical scrolling is considered. The X position is ignored.


Example

// Ensure the text "HEADING" is visible
ImageEnView1.PdfViewer.Find( 'HEADING' );
ImageEnView1.PdfViewer.FindNext( CharIndex, Count );
ImageEnView1.PdfViewer.EnsureTextVisible( CharIndex, Count );


See Also

- SelectText
- Find
- FindNext