FitMode Property

MiFITMODE

FitMode can be one of the following MiFITMODE constants.
miFree (0)
miByWidth (1)
miByHeight (2)
miByWindow (3)
miTextWidth (4)

expression.FitMode

*expression   * Required. An expression that returns an MiDocView object.

Remarks

The FitMode property determines how the current page of the displayed document fits in the viewer control window. All fit mode options retain the aspect ratio of the image.

  • The miFree option displays the document at its actual size and does not fit the document to the viewer control window.
  • The miByWidth option adjusts the width of the document to the width of the viewer control window.
  • The miByHeight option adjusts the height of the document to the height of the viewer control window.
  • The miByWindow option scales the document to fit the entire page within the viewer control window.
  • The miByTextWidth option fits the width of the recognized text within the document to the viewer control window.

The FitmodeChanged event fires when the value of the FitMode property changes.

Applies to | MiDocView Object