Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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.

\)

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set DocumentView
          viewSettings.DocumentView = WordViewSettings.ViewType.Outline;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set ShadeFormFields
          viewSettings.DocumentView = WordViewSettings.ViewType.Outline
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a [WordViewSettings.ViewType|WordViewSettings.ViewType] object that represents the type of view this document will be displayed in when opened by Word. Possible values: Normal, Outline, Page.{excerpt}
{signature:C#}
 public ViewType DocumentView{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property DocumentView() As ViewType
Remarks
This option is set to
{signature}
{remarks}This option is set to [WordViewSettings.ViewType.Page|WordViewSettings.ViewType#Page] by default.


MS Word equivalent: View menu > \(Top section
)
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle