Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitPage |
Sub ToFitPage()
Member of ActiveView
The ToFitPage method changes the active view to fit the entire page of the current document. It ensures that the entire page in a document is visible in CorelDRAW.
The ToFitPage method is equivalent to the Shift+F4 command in CorelDRAW.
The following VBA example sets the active view of the current document with the ToFitPage method, ensuring that the entire page in the document is visible in the application window.
Sub ToFitPage() |
ActiveWindow.ActiveView.ToFitPage |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.