Partager via


DocumentWindow.ViewType Property (PowerPoint)

Returns or sets the type of the view contained in the specified document window. Read/write.

Syntax

expression .ViewType

expression A variable that represents a DocumentWindow object.

Remarks

The value of the ViewType property can be one of these PpViewType constants.

ppViewHandoutMaster

ppViewMasterThumbnails

ppViewNormal

ppViewNotesMaster

ppViewNotesPage

ppViewOutline

ppViewPrintPreview

ppViewSlide

ppViewSlideMaster

ppViewSlideSorter

ppViewThumbnails

ppViewTitleMaster

Example

This example changes the view in the active window to slide sorter view if the window is currently displayed in normal view.

With Application.ActiveWindow

    If .ViewType = ppViewNormal Then

        .ViewType = ppViewSlideSorter

    End If

End With

See Also

Concepts

DocumentWindow Object Members

DocumentWindow Object