Message-ID: <2082838526.9505.1711692450670.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9504_2043983534.1711692450670" ------=_Part_9504_2043983534.1711692450670 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordViewSettings

WordViewSettings

Description

This class = is used manipulate the View settings for a document.=20
C#
=20
 public sealed class WordViewSettings
=20
=20
C#
=20
Public NotInheritable Class WordViewSettings
=20

Remarks

=20

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

=20

The following sample gets the WordViewSettings object of a = document.

=20

Examples

=20

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

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

Properties

Name

Description

DisplayedOutlineLevels

Sets or returns an int object that = represents the number of heading levels that will be displayed by Word in t= he outline view for this document. This can be set to a number between 1 an= d 9.

DisplayFieldResults

Sets or returns a boolean that repr= esents whether Word will display field results (true) or just the field tex= t itself (false) in a document. For example, when set to true you will see = the full contents of a mergefield instead of just the text value inside it.=

DisplayHidden

Sets or returns a boolean that repr= esents whether or not Word will display hidden contents in a document. When= set to true, Word displays text formatted as hidden with a dotted underlin= e. When you print hidden text, the dotted underline does not appear.

DocumentView

Sets or returns a WordViewSettings.ViewType object that represents = the type of view this document will be displayed in when opened by Word. Po= ssible values: Normal, Outline, Page.

EnvelopeVisible

Sets or returns a boolean that repr= esents whether or not Word will display an envelope overlay with this docum= ent (if there is one).

IncludeFooterInBorder

Sets or returns a boolean that repr= esents whether or not Word will display the footer inside the page border f= or a document.

IncludeHeaderInBorder

Sets or returns a boolean that repr= esents whether or not Word will display the header inside the page border f= or a document.

ShadeFormFields

Sets or returns a boolean that repr= esents whether or not Word will shade form fields in a document.

Zoom

Sets or returns a WordViewSettings.ZoomType object that represents = the zoom type the document will be displayed with when opened by Word. Poss= ible values: None, FullPage, PageWidth).

ZoomPercentage

Sets or returns an int that represe= nts the zoom percentage this document will be displayed with when opened by= Word. Possible values: Normal, Outline, Page.

Nested Classes

Name

Description

ViewType

View types (modes) in Word for a document.

ZoomType

Zoom types (modes) in Word for a document.
------=_Part_9504_2043983534.1711692450670--