Remarks:
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.