ImageEn, unit iexUserInteractions |
|
TIEPdfViewer.ScrollToPage
Declaration
procedure ScrollToPage(PgIndex: Integer = -1);
Description
Scrolls the view to ensure the specified page is scrolled to the top of the view (top-left of the page is positioned at top-left of the control).
If PageIndex = -1, then it scrolls the current page to the top of view.
This is useful when
showing all pages to bring a specific page into view.
// Fit page to window and display fully
ImageEnView1.FitMode := iefmBoth;
ImageEnView1.PdfViewer.ScrollToPage();
ImageEnView1.Update();
See Also
◼PageIndex◼ShowAllPages