Share via


DocumentWindow.ViewType Property

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property ViewType As PpViewType
    Get
    Set
'Usage
Dim instance As DocumentWindow
Dim value As PpViewType

value = instance.ViewType

instance.ViewType = value
PpViewType ViewType { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpViewType

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

Examples

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

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace