java.lang.Object
com.aspose.words.ZoomType
public class ZoomType
- extends java.lang.Object
Utility class containing constants.
Possible values for how large or small the document appears on the screen in Microsoft Word.
Example:
Shows how to set a custom zoom factor, which older versions of Microsoft Word will apply to a document upon loading.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.writeln("Hello world!");
doc.getViewOptions().setViewType(ViewType.PAGE_LAYOUT);
doc.getViewOptions().setZoomPercent(50);
Assert.assertEquals(ZoomType.CUSTOM, doc.getViewOptions().getZoomType());
Assert.assertEquals(ZoomType.NONE, doc.getViewOptions().getZoomType());
doc.save(getArtifactsDir() + "ViewOptions.SetZoomPercentage.doc");
- See Also:
- ViewOptions, ViewOptions.ZoomType
|
Field Summary |
static final int | CUSTOM = 0 | |
|
Zoom percentage is set explicitly. It is not recalculated automatically when control size changes.
|
static final int | NONE = 0 | |
|
Indicates to use the explicit zoom percentage. Same as CUSTOM.
|
static final int | FULL_PAGE = 1 | |
|
Zoom percentage is automatically recalculated to fit one full page.
|
static final int | PAGE_WIDTH = 2 | |
|
Zoom percentage is automatically recalculated to fit page width.
|
static final int | TEXT_FIT = 3 | |
|
Zoom percentage is automatically recalculated to fit text.
|
CUSTOM = 0 | |
public static final int CUSTOM |
-
Zoom percentage is set explicitly. It is not recalculated automatically when control size changes.
NONE = 0 | |
public static final int NONE |
-
Indicates to use the explicit zoom percentage. Same as CUSTOM.
FULL_PAGE = 1 | |
public static final int FULL_PAGE |
-
Zoom percentage is automatically recalculated to fit one full page.
PAGE_WIDTH = 2 | |
public static final int PAGE_WIDTH |
-
Zoom percentage is automatically recalculated to fit page width.
TEXT_FIT = 3 | |
public static final int TEXT_FIT |
-
Zoom percentage is automatically recalculated to fit text.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.