DocumentWindow.FitToPage Method
Adjusts the size of the specified document window to accommodate the information that's currently displayed.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub FitToPage
'Usage
Dim instance As DocumentWindow
instance.FitToPage()
void FitToPage()
Examples
This example exits the current slide show, sets the view in the active window to slide view, sets the zoom to 25 percent, and adjusts the size of the window to fit the slide displayed there.