public class ViewOptions
extends java.lang.Object
implements java.lang.Cloneable
To learn more, visit the Work with Options and Appearance of Word Documents documentation article.
Document,
Document.getViewOptions()| Modifier and Type | Method and Description |
|---|---|
boolean |
getDisplayBackgroundShape()
Controls display of the background shape in print layout view.
|
boolean |
getDoNotDisplayPageBoundaries()
Turns off display of the space between the top of the text and the top edge of the page.
|
boolean |
getFormsDesign()
Specifies whether the document is in forms design mode.
|
int |
getViewType()
Controls the view mode in Microsoft Word.
|
int |
getZoomPercent()
Gets the percentage (between 10 and 500) at which you want to view your document.
|
int |
getZoomType()
Gets a zoom value based on the size of the window.
|
protected java.lang.Object |
memberwiseClone() |
void |
setDisplayBackgroundShape(boolean value)
Controls display of the background shape in print layout view.
|
void |
setDoNotDisplayPageBoundaries(boolean value)
Turns off display of the space between the top of the text and the top edge of the page.
|
void |
setFormsDesign(boolean value)
Specifies whether the document is in forms design mode.
|
void |
setViewType(int value)
Controls the view mode in Microsoft Word.
|
void |
setZoomPercent(int value)
Sets the percentage (between 10 and 500) at which you want to view your document.
|
void |
setZoomType(int value)
Sets a zoom value based on the size of the window.
|
public int getViewType()
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
int value. The returned value is one of ViewType constants.public void setViewType(int value)
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
value - The corresponding int value. The value must be one of ViewType constants.public int getZoomType()
ZoomType constants.public void setZoomType(int value)
value - A zoom value based on the size of the window. The value must be one of ZoomType constants.public int getZoomPercent()
If value is 0 then this property uses 100 instead, else if value is less than 10 or greater than 500 this property throws.
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
public void setZoomPercent(int value)
If value is 0 then this property uses 100 instead, else if value is less than 10 or greater than 500 this property throws.
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
value - The percentage (between 10 and 500) at which you want to view your document.public boolean getDoNotDisplayPageBoundaries()
boolean value.public void setDoNotDisplayPageBoundaries(boolean value)
value - The corresponding boolean value.public boolean getDisplayBackgroundShape()
boolean value.public void setDisplayBackgroundShape(boolean value)
value - The corresponding boolean value.public boolean getFormsDesign()
Currently works only for documents in WordML format.
boolean value.public void setFormsDesign(boolean value)
Currently works only for documents in WordML format.
value - The corresponding boolean value.protected java.lang.Object memberwiseClone()