ViewZoomFit Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:17

Description

Fit page or all pages displayed in the same window (layout).

Syntax

Page.ViewZoomFit (bool Width, bool Layout))

Width

True = fit to width (either of page, or layout, depends on the second parameter)

Layout

False = fit to page; True = fit to layout

Remarks

Following combinations are available:

false, false = fit entire page

true, false = fit to page width

false, true = fit all pages displayed in the same window (layout)

true, true = fit to layout width

Example

  <ShellCommand(CanExecute:="Ena_IsWindowActive")> _

  Public Sub ViewZoomPageFit()

    Page.ViewZoomFit(False, False)

  End Sub

Context

Page designer

See also

ViewZoomFit, ViewZoomSel

ViewZoomIn, ViewZoomOut

ViewZoomLazo, ViewZoomPct

ViewGetMetrics, ViewPositionAt