Table of Contents

TTMSFNCWXPDFViewer.FitToPage Method

Adjusts the zoom factor so the current page fits the control.

API unit family: TMSFNCWXPDFViewer Declaring type: TTMSFNCWXPDFViewer Inherited from: TTMSFNCWXCustomPDFViewer

Syntax

procedure FitToPage(AHeight: Boolean = True; AWidth: Boolean = False);

Remarks

When both parameters are True, the smaller of the two fits is used so the entire page is visible. Defaults fit to height only.

Parameters

Name Description
AHeight When True, fits the page to the available height.
AWidth When True, fits the page to the available width.