Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

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.

Signature
C#
C#
 public ViewType DocumentView{ get; set; }
Signature
vb.net
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)

Example
Code Block
csharp
csharp
titleC#

          //--- Return DocumentView
          WordViewSettings.ViewType oViewType = viewSettings.DocumentView;

          //--- Set DocumentView
          viewSettings.DocumentView = WordViewSettings.ViewType.Outline;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return DocumentView
          Dim oViewType As WordViewSettings.ViewType = viewSettings.DocumentView

          '--- Set ShadeFormFields
          viewSettings.DocumentView = WordViewSettings.ViewType.Outline