Class View (Word VBA)
Contains the view attributes (such as show all, field shading, and table gridlines) for a window or pane.
The classes Pane and Window. give access to class View
Dim vw as View
Set vw = ActiveWindow.View
Methods
CollapseAllHeadings - Collapses all the headings in the document.
CollapseOutline - Collapses the text under the selection or the specified range by one heading level.
ExpandAllHeadings - Expands all the headings in the document.
ExpandOutline - Expands the text under the selection by one heading level.
NextHeaderFooter - Moves to the next header or footer, depending on whether a header or footer is displayed in the view.
PreviousHeaderFooter - Moves to the previous header or footer, depending on whether a header or footer is displayed in the view.
ShowAllHeadings - Switches between showing all text (headings and body text) and showing only headings.
ShowHeading - Shows all headings up to the specified heading level and hides subordinate headings and body text.
Properties
Type (Default member) - Returns or sets the view type.
ColumnWidth returns or gets a constant that determines the column width in reading mode. Read/write WdColumnWidth
ConflictMode true if the document is in conflict mode view.
DisplayBackgrounds returns or sets a Boolean that represents whether background colors and images are shown when a document is displayed in print layout view.
DisplayPageBoundaries true to display the top and bottom margins (white space) and the gray area (gray space) between pages in a document.
Draft true if all the text in a window is displayed in the same sans-serif font with minimal formatting to speed up display.
FieldShading returns or sets on-screen shading for fields.
FullScreen true if the window is in full-screen view.
Magnifier true if the pointer is displayed as a magnifying glass in print preview, indicating that the user can click to zoom in on a particular area of the page or zoom out to see an entire page or spread of pages.
MailMergeDataView true if mail merge data is displayed instead of mail merge fields in the specified window.
MarkupMode returns or sets a WdRevisionsMode constant that represents the display mode for tracked changes.
PageColor returns and sets the page color in Reading mode.
PageMovementType returns or sets the page movement type.
Panning returns or sets a Boolean that represents whether Microsoft Word is in Panning mode.
ReadingLayout sets or returns a Boolean that represents whether a document is being viewed in reading layout view.
ReadingLayoutActualView sets or returns a Boolean that represents whether pages displayed in reading layout view are displayed using the same layout as printed pages.
ReadingLayoutTruncateMargins returns or sets a WdReadingLayoutMargin constant that represents whether margins are visible or hidden when a document is viewed in Full Screen Reading view.
RevisionsBalloonShowConnectingLines true for Microsoft Word to display connecting lines from the text to the revision and comment balloons.
RevisionsBalloonSide sets or returns a WdRevisionsBalloonMargin constant that specifies whether Word displays revision balloons in the left or right margin in a document.
RevisionsBalloonWidth sets or returns a Single representing the global setting in Microsoft Word that specifies the width of the revision balloons.
RevisionsBalloonWidthType sets or returns a WdRevisionsBalloonWidthType constant representing the global setting that specifies how Microsoft Word measures the width of revision balloons.
RevisionsFilter returns an instance of a RevisionsFilter object.
SeekView returns or sets the document element displayed in print layout view.
ShadeEditableRanges returns or sets a Long that represents whether shading is applied to the ranges in a document for which users have permission to modify.
ShowAll true if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed.
ShowBookmarks true if square brackets are displayed at the beginning and end of each bookmark.
ShowComments true for Microsoft Word to display the comments in a document.
ShowCropMarks returns or sets a Boolean that represents whether to show crop marks in the corners of pages to indicate where margins are located.
ShowDrawings true if objects created with the drawing tools are displayed in print layout view.
ShowFieldCodes true if field codes are displayed.
ShowFirstLineOnly true if only the first line of body text is shown in outline view.
ShowFormat true if character formatting is visible in outline view.
ShowFormatChanges true for Microsoft Word to display formatting changes made to a document with Track Changes enabled.
ShowHiddenText true if text formatted as hidden text is displayed.
ShowHighlight true if highlight formatting is displayed and printed with a document.
ShowHyphens true if optional hyphens are displayed. An optional hyphen indicates where to break a word when it falls at the end of a line.
ShowInkAnnotations returns or sets Boolean that shows or hides handwritten ink annotations. True displays ink annotations. False hides ink annotations.
ShowInsertionsAndDeletions true for Microsoft Word to display insertions and deletions that were made to a document with Track Changes enabled.
ShowMainTextLayer true if the text in the specified document is visible when the header and footer areas are displayed. This property is equivalent to the Show/Hide Document Text button on the Header and Footer toolbar.
ShowObjectAnchors true if object anchors are displayed next to items that can be positioned in print layout view.
ShowOptionalBreaks true if Microsoft Word displays optional line breaks.
ShowOtherAuthors true if other authors' presence should be visible in the document.
ShowParagraphs true if paragraph marks are displayed.
ShowPicturePlaceHolders true if blank boxes are displayed as placeholders for pictures.
ShowRevisionsAndComments true for Microsoft Word to display revisions and comments that were made to a document with Track Changes enabled.
ShowSpaces true if space characters are displayed.
ShowTabs true if tab characters are displayed.
ShowTextBoundaries true if dotted lines are displayed around page margins, text columns, objects, and frames in print layout view.
ShowXMLMarkup returns a Long that represents whether XML tags are visible in a document.
SplitSpecial returns or sets the active window pane.
TableGridlines true if table gridlines are displayed.
WrapToWindow true if lines wrap at the right edge of the document window rather than at the right margin or the right column boundary.
Zoom returns a Zoom object that represents the magnification for the specified view.
Related Classes
RevisionsFilter - Represents the current settings related to display of reviewers' comments and revision marks in the document.
Zoom - Contains magnification options (for example, the zoom percentage) for a window or pane. The Zoom object is a member of the Zooms collection.