Share via


Zoom.PageFit Property

Returns or sets the view magnification of a window so that either the entire page is visible or the entire width of the page is visible.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property PageFit As WdPageFit
    Get
    Set
'Usage
Dim instance As Zoom
Dim value As WdPageFit

value = instance.PageFit

instance.PageFit = value
WdPageFit PageFit { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdPageFit

Remarks

WdPageFit can be one of these WdPageFit constants:

wdPageFitBestFit

wdPageFitFullPage

wdPageFitNone

wdPageFitTextFit

The wdPageFitFullPage constant has no effect if the document isn't in print view.

When the PageFit property is set to wdPageFitBestFit, the zoom percentage is automatically recalculated every time the document window size is changed. Setting this property to wdPageFitNone keeps the zoom percentage from being recalculated whenever this happens.

See Also

Reference

Zoom Interface

Zoom Members

Microsoft.Office.Interop.Word Namespace