THPDFViewer ResetView Method
Restores the default presentation state without unloading the document or changing the current page
Declarations
procedure THPDFViewer.ResetView;
procedure THPDFViewerModel.ResetView;
Reset state
- Sets
ZoomModetovzmActualSizeandZoomto 1 - Sets
ViewRotationto zero - Clears search results and the active search highlight
- Preserves
PDFDocument,PageIndex, andPageNumber
Update batching
THPDFViewerModel.BeginUpdate and EndUpdate delimit nested state batches while UpdateCount reports the active depth
The Viewer defers rendering until the outermost batch ends while individual state events remain available to model observers
Actions
THPDFResetViewActioninvokes the complete resetTHPDFRotateClockwiseActionrotates the view clockwise by 90 degreesTHPDFRotateCounterClockwiseActionrotates the view counter-clockwise by 90 degrees
Example
PDFViewer.ResetView;