类 PageSettings
java.lang.Object
com.grapecity.documents.excel.PageSettings
Represent the settings of the page.
-
构造器概要
-
方法概要
修饰符和类型方法说明final boolean
Returns whether to align the header and the footer with the margins set in the page setup options.final boolean
Returns whether the elements of the document will be printed in black and white.final double
Returns the size of the bottom margin, in points.final String
Returns the alignment of text on the center footer of the page.final IGraphic
Returns a IGraphic object that represents the picture for the center section of the footer.final String
Returns the alignment of text on the center header of the page.final IGraphic
Returns a IGraphic object that represents the picture for the center section of the header.final boolean
Returns whether the sheet is centered horizontally on the page when it's printed.final boolean
Returns whether the sheet is centered vertically on the page when it's printed.final boolean
getDraft()
Returns whether the sheet will be printed without graphics.final double
Returns the size of the footer margin, in points.final double
Returns the size of the header margin, in points.final String
Returns the alignment of text on the left footer of the page.final IGraphic
Returns a IGraphic object that represents the picture for the left section of the footer.final String
Returns the alignment of text on the left header of the page.final IGraphic
Returns a IGraphic object that represents the picture for the left section of the header.final double
Returns the size of the left margin, in points.final double
Returns the height in points of the paper, considered page orientation.final double
Returns the width in points of the paper, considered page orientation.final PrintErrors
Returns an PrintErrors contstant specifying the type of print error displayed.final boolean
Returns whether cell gridlines are printed on the page.final String
Returns the alignment of text on the right footer of the page.final IGraphic
Returns a IGraphic object that represents the picture for the right section of the footer.final String
Returns the alignment of text on the right header of the page.final IGraphic
Returns a IGraphic object that represents the picture for the right section of the header.final double
Returns the size of the right margin, in points.final boolean
Returns if the header and footer should be scaled with the document when the size of the document changes.final double
Returns the size of the top margin, in points.final void
setAlignMarginsHeaderFooter
(boolean value) Sets whether to align the header and the footer with the margins set in the page setup options.final void
setBlackAndWhite
(boolean value) Sets whether the elements of the document will be printed in black and white.final void
setBottomMargin
(double value) Sets the size of the bottom margin, in points.final void
setCenterFooter
(String value) Sets the alignment of text on the center footer of the page.final void
setCenterFooterPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the center section of the footer.final void
setCenterHeader
(String value) Sets the alignment of text on the center header of the page.final void
setCenterHeaderPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the center section of the header.final void
setCenterHorizontally
(boolean value) Sets whether the sheet is centered horizontally on the page when it's printed.final void
setCenterVertically
(boolean value) Sets whether the sheet is centered vertically on the page when it's printed.final void
setDraft
(boolean value) Sets whether the sheet will be printed without graphics.final void
setFooterMargin
(double value) Sets the size of the footer margin, in points.final void
setHeaderMargin
(double value) Sets the size of the header margin, in points.final void
setLeftFooter
(String value) Sets the alignment of text on the left footer of the page.final void
setLeftFooterPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the left section of the footer.final void
setLeftHeader
(String value) Sets the alignment of text on the left header of the page.final void
setLeftHeaderPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the left section of the header.final void
setLeftMargin
(double value) Sets the size of the left margin, in points.final void
setPaperHeight
(double value) Sets the height in points of the paper, considered page orientation.final void
setPaperWidth
(double value) Sets the width in points of the paper, considered page orientation.final void
setPrintErrors
(PrintErrors value) Sets an PrintErrors contstant specifying the type of print error displayed.final void
setPrintGridlines
(boolean value) Sets whether cell gridlines are printed on the page.final void
setRightFooter
(String value) Sets the alignment of text on the right footer of the page.final void
setRightFooterPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the right section of the footer.final void
setRightHeader
(String value) Sets the alignment of text on the right header of the page.final void
setRightHeaderPicture
(IGraphic value) Sets a IGraphic object that represents the picture for the right section of the header.final void
setRightMargin
(double value) Sets the size of the right margin, in points.final void
setScaleWithDocHeaderFooter
(boolean value) Sets if the header and footer should be scaled with the document when the size of the document changes.final void
setTopMargin
(double value) Sets the size of the top margin, in points.
-
构造器详细资料
-
PageSettings
public PageSettings()
-
-
方法详细资料
-
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.