FitWindowToDocument Method

Changes the size of the window (within the limits of the WorkSpace client area) to fit the size of the document.

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

Syntax

object.FitWindowToDocument [bRedraw]

Properties

The FitWindowToDocument 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 do not repaint the document.

 

Example

Applies To