PageSetup

Overview

PageSetup is a class in Aspose.Cells FOSS for Java.

Represents page setup options for a worksheet.

Properties

NameTypeAccessDescription
paperSizePaperSizeTypeReadReturns the paper size.
orientationPageOrientationTypeReadReturns the orientation.
firstPageNumberIntegerReadReturns the first page number.
scaleIntegerReadReturns the scale.
fitToPagesWideIntegerReadReturns the fit to pages wide.
fitToPagesTallIntegerReadReturns the fit to pages tall.
printAreaStringReadReturns the print area.
printTitleRowsStringReadReturns the print title rows.
printTitleColumnsStringReadReturns the print title columns.
leftMargindoubleReadReturns the left margin.
rightMargindoubleReadReturns the right margin.
topMargindoubleReadReturns the top margin.
bottomMargindoubleReadReturns the bottom margin.
headerMargindoubleReadReturns the header margin.
footerMargindoubleReadReturns the footer margin.
leftMarginInchdoubleReadReturns the left margin inch.
rightMarginInchdoubleReadReturns the right margin inch.
topMarginInchdoubleReadReturns the top margin inch.
bottomMarginInchdoubleReadReturns the bottom margin inch.
headerMarginInchdoubleReadReturns the header margin inch.
footerMarginInchdoubleReadReturns the footer margin inch.
leftHeaderStringReadReturns the left header.
centerHeaderStringReadReturns the center header.
rightHeaderStringReadReturns the right header.
leftFooterStringReadReturns the left footer.
centerFooterStringReadReturns the center footer.
rightFooterStringReadReturns the right footer.
printGridlinesbooleanReadReturns the print gridlines.
printHeadingsbooleanReadReturns the print headings.
centerHorizontallybooleanReadReturns the center horizontally.
centerVerticallybooleanReadReturns the center vertically.
horizontalPageBreaksList<Integer>ReadReturns the horizontal page breaks.
verticalPageBreaksList<Integer>ReadReturns the vertical page breaks.

Methods

SignatureDescription
getPaperSize()PaperSizeTypeReturns the paper size.
setPaperSize(value: PaperSizeType)Sets the paper size.
getOrientation()PageOrientationTypeReturns the orientation.
setOrientation(value: PageOrientationType)Sets the orientation.
getFirstPageNumber()IntegerReturns the first page number.
setFirstPageNumber(value: Integer)Sets the first page number.
getScale()IntegerReturns the scale.
setScale(value: Integer)Sets the scale.
getFitToPagesWide()IntegerReturns the fit to pages wide.
setFitToPagesWide(value: Integer)Sets the fit to pages wide.
getFitToPagesTall()IntegerReturns the fit to pages tall.
setFitToPagesTall(value: Integer)Sets the fit to pages tall.
getPrintArea()StringReturns the print area.
setPrintArea(value: String)Sets the print area.
getPrintTitleRows()StringReturns the print title rows.
setPrintTitleRows(value: String)Sets the print title rows.
getPrintTitleColumns()StringReturns the print title columns.
setPrintTitleColumns(value: String)Sets the print title columns.
getLeftMargin()doubleReturns the left margin.
setLeftMargin(value: double)Sets the left margin.
getRightMargin()doubleReturns the right margin.
setRightMargin(value: double)Sets the right margin.
getTopMargin()doubleReturns the top margin.
setTopMargin(value: double)Sets the top margin.
getBottomMargin()doubleReturns the bottom margin.
setBottomMargin(value: double)Sets the bottom margin.
getHeaderMargin()doubleReturns the header margin.
setHeaderMargin(value: double)Sets the header margin.
getFooterMargin()doubleReturns the footer margin.
setFooterMargin(value: double)Sets the footer margin.
getLeftMarginInch()doubleReturns the left margin inch.
setLeftMarginInch(value: double)Sets the left margin inch.
getRightMarginInch()doubleReturns the right margin inch.
setRightMarginInch(value: double)Sets the right margin inch.
getTopMarginInch()doubleReturns the top margin inch.
setTopMarginInch(value: double)Sets the top margin inch.
getBottomMarginInch()doubleReturns the bottom margin inch.
setBottomMarginInch(value: double)Sets the bottom margin inch.
getHeaderMarginInch()doubleReturns the header margin inch.
setHeaderMarginInch(value: double)Sets the header margin inch.
getFooterMarginInch()doubleReturns the footer margin inch.
setFooterMarginInch(value: double)Sets the footer margin inch.
getLeftHeader()StringReturns the left header.
setLeftHeader(value: String)Sets the left header.
getCenterHeader()StringReturns the center header.
setCenterHeader(value: String)Sets the center header.
getRightHeader()StringReturns the right header.
setRightHeader(value: String)Sets the right header.
getLeftFooter()StringReturns the left footer.
setLeftFooter(value: String)Sets the left footer.
getCenterFooter()StringReturns the center footer.
setCenterFooter(value: String)Sets the center footer.
getRightFooter()StringReturns the right footer.
setRightFooter(value: String)Sets the right footer.
getPrintGridlines()booleanReturns the print gridlines.
setPrintGridlines(value: boolean)Sets the print gridlines.
getPrintHeadings()booleanReturns the print headings.
setPrintHeadings(value: boolean)Sets the print headings.
getCenterHorizontally()booleanReturns the center horizontally.
setCenterHorizontally(value: boolean)Sets the center horizontally.
getCenterVertically()booleanReturns 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.