Zoom.PageFit Property

Definition

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.

public:
 property Microsoft::Office::Interop::Word::WdPageFit PageFit { Microsoft::Office::Interop::Word::WdPageFit get(); void set(Microsoft::Office::Interop::Word::WdPageFit value); };
public Microsoft.Office.Interop.Word.WdPageFit PageFit { get; set; }
member this.PageFit : Microsoft.Office.Interop.Word.WdPageFit with get, set
Public Property PageFit As WdPageFit

Property Value

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.

Applies to