Description
Sets or returns a WordViewSettings.ViewType object that represents the type of view this document will be displayed in when opened by Word. Possible values: Normal, Outline, Page.
C#
public ViewType DocumentView{ get; set; }
vb.net
Public Property DocumentView() As ViewType
Remarks
This option is set to WordViewSettings.ViewType.Page by default.
MS Word equivalent: View menu > (Top section)
Examples
C#
//--- Return DocumentView
WordViewSettings.ViewType oViewType = viewSettings.DocumentView;
//--- Set DocumentView
viewSettings.DocumentView = WordViewSettings.ViewType.Outline;
vb.net
'--- Return DocumentView
Dim oViewType As WordViewSettings.ViewType = viewSettings.DocumentView
'--- Set ShadeFormFields
viewSettings.DocumentView = WordViewSettings.ViewType.Outline
