(Word) 查看对象

包含窗口或窗格的视图属性(如全部显示、域底纹和网格线)。

备注

使用 View 属性返回的 视图 对象。 下面的示例设置活动窗口的视图选项。

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

使用 类型 若要更改视图的属性。 下面的示例将活动窗口切换至普通视图。

ActiveDocument.ActiveWindow.View.Type = wdNormalView

使用 百分比 若要更改文本的大小屏幕上的属性。 下面的示例将放大屏幕文本到 120%。

ActiveDocument.ActiveWindow.View.Zoom.Percentage = 120

使用 SeekView 若要查看批注、 尾注、 脚注,或文档的页眉或页脚的属性。 下面的示例在页面视图中的活动窗口中显示的当前页脚。

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

方法

名称
CollapseAllHeadings
CollapseOutline
ExpandAllHeadings
ExpandOutline
ForceLowresUpdate
ForceOffscreenUpdate
NextHeaderFooter
PreviousHeaderFooter
ShowAllHeadings
ShowHeading

属性

名称
Application
ColumnWidth
ConflictMode
Creator
DisplayBackgrounds
DisplayPageBoundaries
Draft
FieldShading
FullScreen
放大镜
MailMergeDataView
MarkupMode
PageColor
PageMovementType
Panning
Parent
ReadingLayout
ReadingLayoutActualView
ReadingLayoutTruncateMargins
RevisionsBalloonShowConnectingLines
RevisionsBalloonSide
RevisionsBalloonWidth
RevisionsBalloonWidthType
RevisionsFilter
SeekView
ShadeEditableRanges
ShowAll
ShowBookmarks
ShowComments
ShowCropMarks
ShowDrawings
ShowFieldCodes
ShowFirstLineOnly
ShowFormat
ShowFormatChanges
ShowHiddenText
ShowHighlight
ShowHyphens
ShowInkAnnotations
ShowInsertionsAndDeletions
ShowMainTextLayer
ShowMarkupAreaHighlight
ShowObjectAnchors
ShowOptionalBreaks
ShowOtherAuthors
ShowParagraphs
ShowPicturePlaceHolders
ShowRevisionsAndComments
ShowSpaces
ShowTabs
ShowTextBoundaries
ShowXMLMarkup
SplitSpecial
TableGridlines
类型
WrapToWindow
Zoom

另请参阅

Word 对象模型参考

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。