편집

다음을 통해 공유


View.Type Property

Definition

Returns or sets the view type.

public:
 property Microsoft::Office::Interop::Word::WdViewType default { Microsoft::Office::Interop::Word::WdViewType get(); void set(Microsoft::Office::Interop::Word::WdViewType value); };
public Microsoft.Office.Interop.Word.WdViewType this { get; set; }
member this.Type : Microsoft.Office.Interop.Word.WdViewType with get, set
Default Public Property Type As WdViewType

Property Value

Remarks

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.

Applies to