View Property

Returns a View object that represents the view for the specified window or pane.


expression Required. An expression that returns one of the objects in the Applies To list.


This example switches the active window to full-screen view.

ActiveDocument.ActiveWindow.View.FullScreen = True

This example shows all nonprinting characters for panes associated with the first window in the Windows collection.

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

This example sets view options for each window in the Windows collection.

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

Applies to | Pane Object | Window Object

See Also | SeekView Property | ShowAll Property | SplitSpecial Property | Type Property