Upravit

Sdílet prostřednictvím


View Interface

Definition

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

public interface class View
[System.Runtime.InteropServices.Guid("000209A5-0000-0000-C000-000000000046")]
public interface View
type View = interface
Public Interface View
Attributes

Remarks

Use the View property of a Window or Pane object to return the View object.

Use the Type property to change the view.

Use the Percentage property to change the size of the text on-screen.

Use the SeekView property to view comments, endnotes, footnotes, or the document header or footer.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

BrowseToWindow

Reserved for internal use.

ColumnWidth

Returns or gets a constant that determines the column width in reading mode. Read-write WdColumnWidth

ConflictMode

Gets or sets whether the document is in conflict mode view.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

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. False to hide from view the white and gray space so that the pages flow together as one long page. The default value is True.

DisplaySmartTags

True for Microsoft Word to display an underline beneath smart tags 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.

EnlargeFontsLessThan

Reserved for internal use.

FieldShading

Returns or sets on-screen shading for form 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. Read/write.

PageColor

Returns and sets the page color in Reading mode. Read-write WdPageColor.

Panning

Returns or sets a Boolean that represents whether Microsoft Office Word is in Panning mode. Read/write.

Parent

Returns an object that represents the parent object of the specified object.

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.

ReadingLayoutAllowEditing

This object, member, or enumeration is deprecated and is not intended to be used in your code.

ReadingLayoutAllowMultiplePages

This object, member, or enumeration is deprecated and is not intended to be used in your code.

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. Read/write.

Reviewers

This object, member, or enumeration is deprecated and is not intended to be used in your code.

RevisionsBalloonShowConnectingLines

True for Microsoft Word to display connecting lines from the text to the revision and comment balloons.

RevisionsBalloonSide

Sets or returns a constant that specifies whether Microsoft 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 constant representing the global setting that specifies how Microsoft Word measures the width of revision balloons.

RevisionsFilter

Returns an instance of a RevisionsFilter object. Read-only.

RevisionsMode

Sets or returns a constant representing the global option that specifies whether Microsoft Word displays balloons in the margin or inline with the document's text.

RevisionsView

This object, member, or enumeration is deprecated and is not intended to be used in your code.

SeekView

Returns or sets the document element displayed in print layout view.

ShadeEditableRanges

Returns or sets an Integer that represents whether shading is applied to the ranges in a document for which users have permission to modify. True shades the ranges in a document that users can modify.

ShowAll

True if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed.

ShowAnimation

This object, member, or enumeration is deprecated and is not intended to be used in your code.

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. Read/write.

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 if character formatting is visible in outline view.

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 a 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.

ShowMarkupAreaHighlight

Returns or sets a Boolean that represents whether the markup area that shows revision and comment balloons is shaded. Read/write.

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

Gets or sets whether 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 An Integer that represents whether XML tags are viewed in a document.

SplitSpecial

Returns or sets the active window pane.

TableGridlines

True if table gridlines are displayed.

Type

Returns or sets the view type.

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.

Methods

CollapseAllHeadings()

Collapses all the headings in the document.

CollapseOutline(Object)

Collapses the text under the selection or the specified range by one heading level.

ExpandAllHeadings()

Expands all the headings in the document.

ExpandOutline(Object)

Expands the text under the selection or the specified range by one heading level.

NextHeaderFooter()

If the selection is in a header, this method moves to the next header within the current section (for example, from an odd header to an even header) or to the first header in the following section. If the selection is in a footer, this method moves to the next footer.

PreviousHeaderFooter()

If the selection is in a header, this method moves to the previous header within the current section (for example, from an even header to an odd header) or to the last header in the previous section. If the selection is in a footer, this method moves to the previous footer.

ShowAllHeadings()

Toggles between showing all text (headings and body text) and showing only headings.

ShowHeading(Int32)

Shows all headings up to the specified heading level and hides subordinate headings and body text.

Applies to