Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

View.Type Property

Returns or sets the view type.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
WdViewType this { get; set; }

WdViewType can be one of these WdViewType constants:

wdMasterView

wdOutlineView

wdPrintView

wdNormalView

wdPrintPreview

wdWebView

wdReadingView

The Type property returns wdMasterView for all documents where the current view is an outline or a master document. The current view will never return wdOutlineView unless explicitly set first in code.

To check whether the current document is an outline, use the Type property and the Subdocuments collection's Count property. If the Type property returns either wdOutlineView or wdMasterView and the Count property returns zero, the document is an outline.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.