FitDocumentToWindow Method

Changes the size of the document so that the entire document can be seen in the window. In instances where the document is bigger than the window and scrollbars are present, the document is shrunk so that it fits within the window.

IMPORTANT: The FitDocumentToWindow property does not apply to documents that use the Enhanced Coordinate system. It is only available for documents using Logical Coordinates.

Syntax

object.FitDocumentToWindow [bRedraw]

Properties

The FitDocumentToWindow method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bRedraw

Boolean. (Optional) If True, repaint the document. (Default) If False, make the changes but don't repaint the document.

 

Example

Applies To