Package com.grapecity.documents.excel
Class PageSettings
java.lang.Object
com.grapecity.documents.excel.PageSettings
Represent the settings of the page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns whether to align the header and the footer with the margins set in the page setup options.final booleanReturns whether the elements of the document will be printed in black and white.final doubleReturns the size of the bottom margin, in points.final StringReturns the alignment of text on the center footer of the page.final IGraphicReturns a IGraphic object that represents the picture for the center section of the footer.final StringReturns the alignment of text on the center header of the page.final IGraphicReturns a IGraphic object that represents the picture for the center section of the header.final booleanReturns whether the sheet is centered horizontally on the page when it's printed.final booleanReturns whether the sheet is centered vertically on the page when it's printed.final booleangetDraft()Returns whether the sheet will be printed without graphics.final doubleReturns the size of the footer margin, in points.final doubleReturns the size of the header margin, in points.final StringReturns the alignment of text on the left footer of the page.final IGraphicReturns a IGraphic object that represents the picture for the left section of the footer.final StringReturns the alignment of text on the left header of the page.final IGraphicReturns a IGraphic object that represents the picture for the left section of the header.final doubleReturns the size of the left margin, in points.final doubleReturns the height in points of the paper, considered page orientation.final doubleReturns the width in points of the paper, considered page orientation.final PrintErrorsReturns an PrintErrors contstant specifying the type of print error displayed.final booleanReturns whether cell gridlines are printed on the page.final StringReturns the alignment of text on the right footer of the page.final IGraphicReturns a IGraphic object that represents the picture for the right section of the footer.final StringReturns the alignment of text on the right header of the page.final IGraphicReturns a IGraphic object that represents the picture for the right section of the header.final doubleReturns the size of the right margin, in points.final booleanReturns if the header and footer should be scaled with the document when the size of the document changes.final doubleReturns the size of the top margin, in points.final voidsetAlignMarginsHeaderFooter(boolean value) Sets whether to align the header and the footer with the margins set in the page setup options.final voidsetBlackAndWhite(boolean value) Sets whether the elements of the document will be printed in black and white.final voidsetBottomMargin(double value) Sets the size of the bottom margin, in points.final voidsetCenterFooter(String value) Sets the alignment of text on the center footer of the page.final voidsetCenterFooterPicture(IGraphic value) Sets a IGraphic object that represents the picture for the center section of the footer.final voidsetCenterHeader(String value) Sets the alignment of text on the center header of the page.final voidsetCenterHeaderPicture(IGraphic value) Sets a IGraphic object that represents the picture for the center section of the header.final voidsetCenterHorizontally(boolean value) Sets whether the sheet is centered horizontally on the page when it's printed.final voidsetCenterVertically(boolean value) Sets whether the sheet is centered vertically on the page when it's printed.final voidsetDraft(boolean value) Sets whether the sheet will be printed without graphics.final voidsetFooterMargin(double value) Sets the size of the footer margin, in points.final voidsetHeaderMargin(double value) Sets the size of the header margin, in points.final voidsetLeftFooter(String value) Sets the alignment of text on the left footer of the page.final voidsetLeftFooterPicture(IGraphic value) Sets a IGraphic object that represents the picture for the left section of the footer.final voidsetLeftHeader(String value) Sets the alignment of text on the left header of the page.final voidsetLeftHeaderPicture(IGraphic value) Sets a IGraphic object that represents the picture for the left section of the header.final voidsetLeftMargin(double value) Sets the size of the left margin, in points.final voidsetPaperHeight(double value) Sets the height in points of the paper, considered page orientation.final voidsetPaperWidth(double value) Sets the width in points of the paper, considered page orientation.final voidsetPrintErrors(PrintErrors value) Sets an PrintErrors contstant specifying the type of print error displayed.final voidsetPrintGridlines(boolean value) Sets whether cell gridlines are printed on the page.final voidsetRightFooter(String value) Sets the alignment of text on the right footer of the page.final voidsetRightFooterPicture(IGraphic value) Sets a IGraphic object that represents the picture for the right section of the footer.final voidsetRightHeader(String value) Sets the alignment of text on the right header of the page.final voidsetRightHeaderPicture(IGraphic value) Sets a IGraphic object that represents the picture for the right section of the header.final voidsetRightMargin(double value) Sets the size of the right margin, in points.final voidsetScaleWithDocHeaderFooter(boolean value) Sets if the header and footer should be scaled with the document when the size of the document changes.final voidsetTopMargin(double value) Sets the size of the top margin, in points.
-
Constructor Details
-
PageSettings
public PageSettings()
-
-
Method Details
-
getLeftHeader
Returns the alignment of text on the left header of the page. -
setLeftHeader
Sets the alignment of text on the left header of the page. -
getCenterHeader
Returns the alignment of text on the center header of the page. -
setCenterHeader
Sets the alignment of text on the center header of the page. -
getRightHeader
Returns the alignment of text on the right header of the page. -
setRightHeader
Sets the alignment of text on the right header of the page. -
getLeftHeaderPicture
Returns a IGraphic object that represents the picture for the left section of the header. Used to set attributes about the picture. -
setLeftHeaderPicture
Sets a IGraphic object that represents the picture for the left section of the header. Used to set attributes about the picture. -
getCenterHeaderPicture
Returns a IGraphic object that represents the picture for the center section of the header. Used to set attributes about the picture. -
setCenterHeaderPicture
Sets a IGraphic object that represents the picture for the center section of the header. Used to set attributes about the picture. -
getRightHeaderPicture
Returns a IGraphic object that represents the picture for the right section of the header. Used to set attributes of the picture. -
setRightHeaderPicture
Sets a IGraphic object that represents the picture for the right section of the header. Used to set attributes of the picture. -
getBlackAndWhite
public final boolean getBlackAndWhite()Returns whether the elements of the document will be printed in black and white. -
setBlackAndWhite
public final void setBlackAndWhite(boolean value) Sets whether the elements of the document will be printed in black and white. -
getDraft
public final boolean getDraft()Returns whether the sheet will be printed without graphics. -
setDraft
public final void setDraft(boolean value) Sets whether the sheet will be printed without graphics. -
getPrintGridlines
public final boolean getPrintGridlines()Returns whether cell gridlines are printed on the page. Applies only to worksheets. -
setPrintGridlines
public final void setPrintGridlines(boolean value) Sets whether cell gridlines are printed on the page. Applies only to worksheets. -
getPrintErrors
Returns an PrintErrors contstant specifying the type of print error displayed. This feature allows users to suppress the display of error values when printing a worksheet. -
setPrintErrors
Sets an PrintErrors contstant specifying the type of print error displayed. This feature allows users to suppress the display of error values when printing a worksheet. -
getCenterHorizontally
public final boolean getCenterHorizontally()Returns whether the sheet is centered horizontally on the page when it's printed. -
setCenterHorizontally
public final void setCenterHorizontally(boolean value) Sets whether the sheet is centered horizontally on the page when it's printed. -
getCenterVertically
public final boolean getCenterVertically()Returns whether the sheet is centered vertically on the page when it's printed. -
setCenterVertically
public final void setCenterVertically(boolean value) Sets whether the sheet is centered vertically on the page when it's printed. -
getLeftMargin
public final double getLeftMargin()Returns the size of the left margin, in points. -
setLeftMargin
public final void setLeftMargin(double value) Sets the size of the left margin, in points. -
getTopMargin
public final double getTopMargin()Returns the size of the top margin, in points. -
setTopMargin
public final void setTopMargin(double value) Sets the size of the top margin, in points. -
getRightMargin
public final double getRightMargin()Returns the size of the right margin, in points. -
setRightMargin
public final void setRightMargin(double value) Sets the size of the right margin, in points. -
getBottomMargin
public final double getBottomMargin()Returns the size of the bottom margin, in points. -
setBottomMargin
public final void setBottomMargin(double value) Sets the size of the bottom margin, in points. -
getHeaderMargin
public final double getHeaderMargin()Returns the size of the header margin, in points. -
setHeaderMargin
public final void setHeaderMargin(double value) Sets the size of the header margin, in points. -
getPaperWidth
public final double getPaperWidth()Returns the width in points of the paper, considered page orientation. -
setPaperWidth
public final void setPaperWidth(double value) Sets the width in points of the paper, considered page orientation. -
getPaperHeight
public final double getPaperHeight()Returns the height in points of the paper, considered page orientation. -
setPaperHeight
public final void setPaperHeight(double value) Sets the height in points of the paper, considered page orientation.