Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > WordViewSettings

The WordViewSettings Object


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

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

The following sample gets the WordViewSettings object of a document.



Examples:

[csharp]
WordApplication app = new WordApplication();
Document doc = app.Open(@"C:\sample.doc");
WordViewSettings viewSettings = doc.ViewSettings;
[vbnet]
Dim app As New WordApplication()
Dim doc As Document = app.Open("C:\sample.doc")
Dim viewSettings As WordViewSettings = doc.ViewSettings


WordViewSettings Enumerations

NameDescription
WordViewSettings.ViewType

View types (modes) in Word for a document

WordViewSettings.ZoomType

Zoom types (modes) in Word for a document



WordViewSettings Properties

Property Type Access Description
DisplayedOutlineLevels int read
write

Sets or returns an int object that represents the number of heading levels that will be displayed by Word in the outline view for this document

DisplayFieldResults boolean read
write

Sets or returns a boolean that represents whether Word will display field results (true) or just the field text itself (false) in a document

DisplayHidden boolean read
write

Sets or returns a boolean that represents whether or not Word will display hidden contents in a document

DocumentView WordViewSettings.ViewType read
write

Sets or returns a WordViewSettings.ViewType object that represents the type of view this document will be displayed in when opened by Word

EnvelopeVisible boolean read
write

Sets or returns a boolean that represents whether or not Word will display an envelope overlay with this document (if there is one)

IncludeFooterInBorder boolean read
write

Sets or returns a boolean that represents whether or not Word will display the footer inside the page border for a document

IncludeHeaderInBorder boolean read
write

Sets or returns a boolean that represents whether or not Word will display the header inside the page border for a document

ShadeFormFields boolean read
write

Sets or returns a boolean that represents whether or not Word will shade form fields in a document

Zoom WordViewSettings.ZoomType read
write

Sets or returns a WordViewSettings.ZoomType object that represents the zoom type the document will be displayed with when opened by Word

ZoomPercentage int read
write

Sets or returns an int that represents the zoom percentage this document will be displayed with when opened by Word



This object does not have any methods defined.



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.