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

This class is used manipulate the View settings for a document.

Signature
C#
langC#csharp
  public sealed class WordViewSettings
Signature
vb.net
langvb.net

Public NotInheritable Class WordViewSettings

...

Remarks

You cannot create a new WordViewSettings object. You must use the Document.ViewSettings property to retrieve WordViewSettings properties for a document.

The following sample gets the WordViewSettings object of a document.

Example

...



          WordApplication app = new WordApplication();
          Document doc = app.Open(@"C:\sample.doc");
          WordViewSettings viewSettings = doc.ViewSettings;
        

...



          Dim app As New WordApplication()
          Dim doc As Document = app.Open("C:\sample.doc")
          Dim viewSettings As WordViewSettings = doc.ViewSettings
        
Properties

Name

Description

DisplayedOutlineLevels

Excerpt Include
WW8:WordViewSettings.DisplayedOutlineLevelsWW8:
WordViewSettings.DisplayedOutlineLevels
nopaneltrue

DisplayFieldResults

Excerpt Include
WW8:WordViewSettings.DisplayFieldResultsWW8:
WordViewSettings.DisplayFieldResults
nopaneltrue

DisplayHidden

Excerpt Include
WW8:WordViewSettings.DisplayHiddenWW8:
WordViewSettings.DisplayHidden
nopaneltrue

DocumentView

Excerpt Include
WW8:WordViewSettings.DocumentViewWW8:
WordViewSettings.DocumentView
nopaneltrue

EnvelopeVisible

Excerpt Include
WW8:WordViewSettings.EnvelopeVisibleWW8:
WordViewSettings.EnvelopeVisible
nopaneltrue

IncludeFooterInBorder

Excerpt Include
WW8:WordViewSettings.IncludeFooterInBorderWW8:
WordViewSettings.IncludeFooterInBorder
nopaneltrue

IncludeHeaderInBorder

Excerpt Include
WW8:WordViewSettings.IncludeHeaderInBorderWW8:
WordViewSettings.IncludeHeaderInBorder
nopaneltrue

ShadeFormFields

Excerpt Include
WW8:WordViewSettings.ShadeFormFieldsWW8:
WordViewSettings.ShadeFormFields
nopaneltrue

Zoom

Excerpt Include
WW8:WordViewSettings.ZoomWW8:
WordViewSettings.Zoom
nopaneltrue

ZoomPercentage

Excerpt Include
WW8:WordViewSettings.ZoomPercentageWW8:
WordViewSettings.ZoomPercentage
nopaneltrue

Classes

Name

Description

ViewType

Excerpt Include
WW8:WordViewSettings.ViewTypeWW8:
WordViewSettings.ViewType
nopaneltrue

ZoomType

Excerpt Include
WW8:WordViewSettings.ZoomTypeWW8:
WordViewSettings.ZoomType
nopaneltrue