View 属性

       

该属性返回一个 View 对象,该对象代表指定窗口或窗格的视图。

expression.View

expression   必需。该表达式返回“应用于”列表中的一个对象。

示例

本示例将活动窗口切换为全屏显示。

ActiveDocument.ActiveWindow.View.FullScreen = True

本示例显示与 Windows 集合的第一个窗口相关的窗格中所有的非打印字符。

For Each myPane In Windows(1).Panes
    myPane.View.ShowAll = True
Next myPane

本示例设置 Windows 集合中所有窗口的视图选项。

For Each myWindow In Windows
    With myWindow.View
        .ShowTabs = True
        .ShowParagraphs = True
        .Type = wdNormalView
    End With
Next myWindow