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
| Name | Type | Access | Description |
|---|---|---|---|
viewType | int | Read/Write | Controls the view mode in Microsoft Word. |
zoomType | int | Read/Write | Gets or sets a zoom value based on the size of the window. |
zoomPercent | int | Read/Write | Gets or sets the percentage at which you want to view your document. |
doNotDisplayPageBoundaries | boolean | Read/Write | Turns off display of the space between the top of the text and the top edge of the page. |
displayBackgroundShape | boolean | Read/Write | Controls display of the background shape in print layout view. |
formsDesign | boolean | Read/Write | Specifies whether the document is in forms design mode. |
Methods
| Signature | Description |
|---|---|
getViewType() → int | Controls the view mode in Microsoft Word. |
setViewType(value: int) | Sets the view type value. |
getZoomType() → int | Gets or sets a zoom value based on the size of the window. |
setZoomType(value: int) | Sets the zoom type value. |
getZoomPercent() → int | Gets or sets the percentage at which you want to view your document. |
setZoomPercent(value: int) | Sets the zoom percent value. |
getDoNotDisplayPageBoundaries() → boolean | Turns 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() → boolean | Controls display of the background shape in print layout view. |
setDisplayBackgroundShape(value: boolean) | Sets the display background shape value. |
getFormsDesign() → boolean | Specifies whether the document is in forms design mode. |
setFormsDesign(value: boolean) | Sets the forms design value. |