Page tree
    Created with Raphaël 2.1.0
    Loading...
Skip to end of metadata
Go to start of metadata

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
  • No labels