Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

'Usage
Dim view1 As View

Dim returnValue As WdViewType
returnValue = view1.Type

Dim sampleValue As WdViewType
view1.Type = sampleValue

WdViewType Type {get; set;}
public WdViewType get_Type();
public void set_Type(WdViewType);
function get Type() : WdViewType;
function set Type(WdViewType);

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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: