PageSetup
Overview
PageSetup is a class in Aspose.Cells FOSS for Java.
Represents page setup options for a worksheet.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paperSize | PaperSizeType | Read | Returns the paper size. |
orientation | PageOrientationType | Read | Returns the orientation. |
firstPageNumber | Integer | Read | Returns the first page number. |
scale | Integer | Read | Returns the scale. |
fitToPagesWide | Integer | Read | Returns the fit to pages wide. |
fitToPagesTall | Integer | Read | Returns the fit to pages tall. |
printArea | String | Read | Returns the print area. |
printTitleRows | String | Read | Returns the print title rows. |
printTitleColumns | String | Read | Returns the print title columns. |
leftMargin | double | Read | Returns the left margin. |
rightMargin | double | Read | Returns the right margin. |
topMargin | double | Read | Returns the top margin. |
bottomMargin | double | Read | Returns the bottom margin. |
headerMargin | double | Read | Returns the header margin. |
footerMargin | double | Read | Returns the footer margin. |
leftMarginInch | double | Read | Returns the left margin inch. |
rightMarginInch | double | Read | Returns the right margin inch. |
topMarginInch | double | Read | Returns the top margin inch. |
bottomMarginInch | double | Read | Returns the bottom margin inch. |
headerMarginInch | double | Read | Returns the header margin inch. |
footerMarginInch | double | Read | Returns the footer margin inch. |
leftHeader | String | Read | Returns the left header. |
centerHeader | String | Read | Returns the center header. |
rightHeader | String | Read | Returns the right header. |
leftFooter | String | Read | Returns the left footer. |
centerFooter | String | Read | Returns the center footer. |
rightFooter | String | Read | Returns the right footer. |
printGridlines | boolean | Read | Returns the print gridlines. |
printHeadings | boolean | Read | Returns the print headings. |
centerHorizontally | boolean | Read | Returns the center horizontally. |
centerVertically | boolean | Read | Returns the center vertically. |
horizontalPageBreaks | List<Integer> | Read | Returns the horizontal page breaks. |
verticalPageBreaks | List<Integer> | Read | Returns the vertical page breaks. |
Methods
| Signature | Description |
|---|---|
getPaperSize() → PaperSizeType | Returns the paper size. |
setPaperSize(value: PaperSizeType) | Sets the paper size. |
getOrientation() → PageOrientationType | Returns the orientation. |
setOrientation(value: PageOrientationType) | Sets the orientation. |
getFirstPageNumber() → Integer | Returns the first page number. |
setFirstPageNumber(value: Integer) | Sets the first page number. |
getScale() → Integer | Returns the scale. |
setScale(value: Integer) | Sets the scale. |
getFitToPagesWide() → Integer | Returns the fit to pages wide. |
setFitToPagesWide(value: Integer) | Sets the fit to pages wide. |
getFitToPagesTall() → Integer | Returns the fit to pages tall. |
setFitToPagesTall(value: Integer) | Sets the fit to pages tall. |
getPrintArea() → String | Returns the print area. |
setPrintArea(value: String) | Sets the print area. |
getPrintTitleRows() → String | Returns the print title rows. |
setPrintTitleRows(value: String) | Sets the print title rows. |
getPrintTitleColumns() → String | Returns the print title columns. |
setPrintTitleColumns(value: String) | Sets the print title columns. |
getLeftMargin() → double | Returns the left margin. |
setLeftMargin(value: double) | Sets the left margin. |
getRightMargin() → double | Returns the right margin. |
setRightMargin(value: double) | Sets the right margin. |
getTopMargin() → double | Returns the top margin. |
setTopMargin(value: double) | Sets the top margin. |
getBottomMargin() → double | Returns the bottom margin. |
setBottomMargin(value: double) | Sets the bottom margin. |
getHeaderMargin() → double | Returns the header margin. |
setHeaderMargin(value: double) | Sets the header margin. |
getFooterMargin() → double | Returns the footer margin. |
setFooterMargin(value: double) | Sets the footer margin. |
getLeftMarginInch() → double | Returns the left margin inch. |
setLeftMarginInch(value: double) | Sets the left margin inch. |
getRightMarginInch() → double | Returns the right margin inch. |
setRightMarginInch(value: double) | Sets the right margin inch. |
getTopMarginInch() → double | Returns the top margin inch. |
setTopMarginInch(value: double) | Sets the top margin inch. |
getBottomMarginInch() → double | Returns the bottom margin inch. |
setBottomMarginInch(value: double) | Sets the bottom margin inch. |
getHeaderMarginInch() → double | Returns the header margin inch. |
setHeaderMarginInch(value: double) | Sets the header margin inch. |
getFooterMarginInch() → double | Returns the footer margin inch. |
setFooterMarginInch(value: double) | Sets the footer margin inch. |
getLeftHeader() → String | Returns the left header. |
setLeftHeader(value: String) | Sets the left header. |
getCenterHeader() → String | Returns the center header. |
setCenterHeader(value: String) | Sets the center header. |
getRightHeader() → String | Returns the right header. |
setRightHeader(value: String) | Sets the right header. |
getLeftFooter() → String | Returns the left footer. |
setLeftFooter(value: String) | Sets the left footer. |
getCenterFooter() → String | Returns the center footer. |
setCenterFooter(value: String) | Sets the center footer. |
getRightFooter() → String | Returns the right footer. |
setRightFooter(value: String) | Sets the right footer. |
getPrintGridlines() → boolean | Returns the print gridlines. |
setPrintGridlines(value: boolean) | Sets the print gridlines. |
getPrintHeadings() → boolean | Returns the print headings. |
setPrintHeadings(value: boolean) | Sets the print headings. |
getCenterHorizontally() → boolean | Returns the center horizontally. |
setCenterHorizontally(value: boolean) | Sets the center horizontally. |
getCenterVertically() → boolean | Returns the center vertically. |
setCenterVertically(value: boolean) | Sets the center vertically. |
getHorizontalPageBreaks() → List<Integer> | Returns the horizontal page breaks. |
getVerticalPageBreaks() → List<Integer> | Returns the vertical page breaks. |
addHorizontalPageBreak(rowIndex: int) | Adds horizontal page break. |
addVerticalPageBreak(columnIndex: int) | Adds vertical page break. |
clearHorizontalPageBreaks() | Clears the current state maintained by this object. |
clearVerticalPageBreaks() | Clears the current state maintained by this object. |