View Object

Multiple objects
View
Multiple objects

Contains the view attributes (show all, field shading, table gridlines, and so on) for a window or pane.

Using the View Object

Use the View property to return the View object. The following example sets view options for the active window.

With ActiveDocument.ActiveWindow.View
    .ShowAll = True
    .TableGridlines = True
    .WrapToWindow = False
End With

Remarks

Use the Type property to change the view. The following example switches the active window to normal view.

ActiveDocument.ActiveWindow.View.Type = wdNormalView

Use the Percentage property to change the size of the text on-screen. The following example enlarges the on-screen text to 120 percent.

ActiveDocument.ActiveWindow.View.Zoom.Percentage = 120

Use the SeekView property to view comments, endnotes, footnotes, or the document header or footer. The following example displays the current footer in the active window in print layout view.

With ActiveDocument.ActiveWindow.View
    .Type = wdPrintView
    .SeekView = wdSeekCurrentPageFooter
End With

Properties | Application Property | Creator Property | DisplayBackgrounds Property | DisplayPageBoundaries Property | DisplaySmartTags Property | Draft Property | FieldShading Property | FullScreen Property | Magnifier Property | MailMergeDataView Property | Parent Property | ReadingLayout Property | ReadingLayoutActualView Property | ReadingLayoutAllowMultiplePages Property | Reviewers Property | RevisionsBalloonShowConnectingLines Property | RevisionsBalloonSide Property | RevisionsBalloonWidth Property | RevisionsBalloonWidthType Property | RevisionsMode Property | RevisionsView Property | SeekView Property | ShadeEditableRanges Property | ShowAll Property | ShowAnimation Property | ShowBookmarks Property | ShowComments Property | ShowDrawings Property | ShowFieldCodes Property | ShowFirstLineOnly Property | ShowFormat Property | ShowFormatChanges Property | ShowHiddenText Property | ShowHighlight Property | ShowHyphens Property | ShowInkAnnotations Property | ShowInsertionsAndDeletions Property | ShowMainTextLayer Property | ShowObjectAnchors Property | ShowOptionalBreaks Property | ShowParagraphs Property | ShowPicturePlaceHolders Property | ShowRevisionsAndComments Property | ShowSpaces Property | ShowTabs Property | ShowTextBoundaries Property | ShowXMLMarkup Property | SplitSpecial Property | TableGridlines Property | Type Property | WrapToWindow Property | Zoom Property

Methods | CollapseOutline Method | ExpandOutline Method | NextHeaderFooter Method | PreviousHeaderFooter Method | ShowAllHeadings Method | ShowHeading Method

Parent Objects | Pane Object | Window Object

Child Objects | Reviewers Object | Zoom Object

See Also | Zooms Collection Object