FitWindowToDocument Method Example
IMPORTANT: The FitWindowToDocument Method Example does not apply to documents that use the Enhanced Coordinate system. It is only available for documents using Logical Coordinates.
The following example changes the size of the window to fit the size of the TestPictureDocument.
TestPicture.FitWindowToDocument
The following example changes the size of the window to fit the size of the TestPictureDocument, preventing the repainting of the Picture.
TestPicture. FitWindowToDocument False