Object Model Reference : Classes : A : ActiveView : Methods : ActiveView.ToFitPageWidth |
Sub ToFitPageWidth()
Member of ActiveView
The ToFitPageWidth method changes the active view to fit the entire page width of the current document into the application window. This method places the left and right borders of the active page to the left and right borders of the application window, adjusting the zoom level so that these page boundaries fit the entire window space.
The following VBA example adjusts the zoom level in CorelDRAW so that the active view fits the width of the page in the active document. This changes the appearance of the active view in that the entire view space is now occupied by the width of the active page.
Sub ToFitPageWidth() |
ActiveWindow.ActiveView.ToFitPageWidth |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.