ViewOptions

Overview

ViewOptions is a class in Aspose.Words FOSS for Java. Inherits from: Cloneable.

Provides various options that control how a document is shown in Microsoft Word.

Edition status of its 18 listed members (a property and its accessor methods are listed separately, overloads once): 18 not yet exercised by a verified example.

This class declares 12 methods for ViewOptions objects in Java programs. Available methods include: getDisplayBackgroundShape, getDoNotDisplayPageBoundaries, getFormsDesign, getViewType, getZoomPercent, getZoomType, setDisplayBackgroundShape, setDoNotDisplayPageBoundaries, setFormsDesign, setViewType, setZoomPercent, setZoomType. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: displayBackgroundShape, doNotDisplayPageBoundaries, formsDesign, viewType, zoomPercent, zoomType.

Properties

NameTypeAccessDescription
viewTypeintRead/WriteControls the view mode in Microsoft Word.
zoomTypeintRead/WriteGets or sets a zoom value based on the size of the window.
zoomPercentintRead/WriteGets or sets the percentage at which you want to view your document.
doNotDisplayPageBoundariesbooleanRead/WriteTurns off display of the space between the top of the text and the top edge of the page.
displayBackgroundShapebooleanRead/WriteControls display of the background shape in print layout view.
formsDesignbooleanRead/WriteSpecifies whether the document is in forms design mode.

Methods

SignatureDescription
getViewType() → intControls the view mode in Microsoft Word.
setViewType(value: int)Sets the view type value.
getZoomType() → intGets or sets a zoom value based on the size of the window.
setZoomType(value: int)Sets the zoom type value.
getZoomPercent() → intGets or sets the percentage at which you want to view your document.
setZoomPercent(value: int)Sets the zoom percent value.
getDoNotDisplayPageBoundaries() → booleanTurns off display of the space between the top of the text and the top edge of the page.
setDoNotDisplayPageBoundaries(value: boolean)Sets the do not display page boundaries value.
getDisplayBackgroundShape() → booleanControls display of the background shape in print layout view.
setDisplayBackgroundShape(value: boolean)Sets the display background shape value.
getFormsDesign() → booleanSpecifies whether the document is in forms design mode.
setFormsDesign(value: boolean)Sets the forms design value.

See Also