PageSetupModel
Overview
PageSetupModel is a class in Aspose.Cells FOSS for Java.
Represents page setup model for an Excel worksheet.
This class provides 23 methods for working with PageSetupModel objects in Java programs.
Available methods include: getFirstPageNumber, getFitToHeight, getFitToWidth, getHeaderFooter, getHorizontalPageBreaks, getMargins, getOrientation, getPaperSize, getPrintArea, getPrintOptions, getPrintTitleColumns, getPrintTitleRows, and 11 additional methods.
All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: firstPageNumber, fitToHeight, fitToWidth, headerFooter, horizontalPageBreaks, margins, and 8 more.
Description
PageSetupModel is a class in the Aspose.Cells FOSS library for Java that exposes 23 methods and 14 properties for programmatic use.
Core capabilities include: pagemarginsmodel; printoptionsmodel; headerfootermodel. These operations enable developers to integrate pagesetupmodel functionality directly into Java applications.
The class also provides the margins property (returns the margins), the printOptions property (returns the print options), the headerFooter property (returns the header footer).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
margins | PageMarginsModel | Read | Returns the margins. |
printOptions | PrintOptionsModel | Read | Returns the print options. |
headerFooter | HeaderFooterModel | Read | Returns the header footer. |
paperSize | int | Read | Returns the paper size. |
orientation | PageOrientation | Read | Returns the orientation. |
firstPageNumber | Integer | Read | Returns the first page number. |
scale | Integer | Read | Returns the scale. |
fitToWidth | Integer | Read | Returns the fit to width. |
fitToHeight | Integer | Read | Returns the fit to height. |
printArea | String | Read | Returns the print area. |
printTitleRows | String | Read | Returns the print title rows. |
printTitleColumns | String | Read | Returns the print title columns. |
horizontalPageBreaks | List<Integer> | Read | Returns the horizontal page breaks. |
verticalPageBreaks | List<Integer> | Read | Returns the vertical page breaks. |
Methods
| Signature | Description |
|---|---|
getMargins() → PageMarginsModel | Returns the margins. |
getPrintOptions() → PrintOptionsModel | Returns the print options. |
getHeaderFooter() → HeaderFooterModel | Returns the header footer. |
getPaperSize() → int | Returns the paper size. |
setPaperSize(paperSize: int) | Sets the paper size. |
getOrientation() → PageOrientation | Returns the orientation. |
setOrientation(orientation: PageOrientation) | Sets the orientation. |
getFirstPageNumber() → Integer | Returns the first page number. |
setFirstPageNumber(firstPageNumber: Integer) | Sets the first page number. |
getScale() → Integer | Returns the scale. |
setScale(scale: Integer) | Sets the scale. |
getFitToWidth() → Integer | Returns the fit to width. |
setFitToWidth(fitToWidth: Integer) | Sets the fit to width. |
getFitToHeight() → Integer | Returns the fit to height. |
setFitToHeight(fitToHeight: Integer) | Sets the fit to height. |
getPrintArea() → String | Returns the print area. |
setPrintArea(printArea: String) | Sets the print area. |
getPrintTitleRows() → String | Returns the print title rows. |
setPrintTitleRows(printTitleRows: String) | Sets the print title rows. |
getPrintTitleColumns() → String | Returns the print title columns. |
setPrintTitleColumns(printTitleColumns: String) | Sets the print title columns. |
getHorizontalPageBreaks() → List<Integer> | Returns the horizontal page breaks. |
getVerticalPageBreaks() → List<Integer> | Returns the vertical page breaks. |