PageSetup Class

PageSetup class

Encapsulates the object that represents the page setup description.The PageSetup object contains all page setup options.


type PageSetup struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetODSPageBackgroundGets the background of ODS.
CopyCopies the setting of the page setup.
GetPrintAreaRepresents the range to be printed.
SetPrintAreaRepresents the range to be printed.
GetPrintTitleColumnsRepresents the columns that contain the cells to be repeated on the left side of each page.
SetPrintTitleColumnsRepresents the columns that contain the cells to be repeated on the left side of each page.
GetPrintTitleRowsRepresents the rows that contain the cells to be repeated at the top of each page.
SetPrintTitleRowsRepresents the rows that contain the cells to be repeated at the top of each page.
GetBlackAndWhiteRepresents if elements of the document will be printed in black and white.
SetBlackAndWhiteRepresents if elements of the document will be printed in black and white.
GetCenterHorizontallyRepresent if the sheet is printed centered horizontally.
SetCenterHorizontallyRepresent if the sheet is printed centered horizontally.
GetCenterVerticallyRepresent if the sheet is printed centered vertically.
SetCenterVerticallyRepresent if the sheet is printed centered vertically.
GetPrintDraftRepresents if the sheet will be printed without graphics.
SetPrintDraftRepresents if the sheet will be printed without graphics.
GetFooterMarginRepresents the distance from the bottom of the page to the footer, in unit of centimeters.
SetFooterMarginRepresents the distance from the bottom of the page to the footer, in unit of centimeters.
GetFooterMarginInchRepresents the distance from the bottom of the page to the footer, in unit of inches.
SetFooterMarginInchRepresents the distance from the bottom of the page to the footer, in unit of inches.
GetHeaderMarginRepresents the distance from the top of the page to the header, in unit of centimeters.
SetHeaderMarginRepresents the distance from the top of the page to the header, in unit of centimeters.
GetHeaderMarginInchRepresents the distance from the top of the page to the header, in unit of inches.
SetHeaderMarginInchRepresents the distance from the top of the page to the header, in unit of inches.
GetLeftMarginRepresents the size of the left margin, in unit of centimeters.
SetLeftMarginRepresents the size of the left margin, in unit of centimeters.
GetLeftMarginInchRepresents the size of the left margin, in unit of inches.
SetLeftMarginInchRepresents the size of the left margin, in unit of inches.
GetRightMarginRepresents the size of the right margin, in unit of centimeters.
SetRightMarginRepresents the size of the right margin, in unit of centimeters.
GetRightMarginInchRepresents the size of the right margin, in unit of inches.
SetRightMarginInchRepresents the size of the right margin, in unit of inches.
GetTopMarginRepresents the size of the top margin, in unit of centimeters.
SetTopMarginRepresents the size of the top margin, in unit of centimeters.
GetTopMarginInchRepresents the size of the top margin, in unit of inches.
SetTopMarginInchRepresents the size of the top margin, in unit of inches.
GetBottomMarginRepresents the size of the bottom margin, in unit of centimeters.
SetBottomMarginRepresents the size of the bottom margin, in unit of centimeters.
GetBottomMarginInchRepresents the size of the bottom margin, in unit of inches.
SetBottomMarginInchRepresents the size of the bottom margin, in unit of inches.
GetFirstPageNumberRepresents the first page number that will be used when this sheet is printed.
SetFirstPageNumberRepresents the first page number that will be used when this sheet is printed.
SetFitToPagesSets the number of pages the worksheet will be scaled to when it’s printed.
GetFitToPagesTallRepresents the number of pages tall the worksheet will be scaled to when it’s printed.The default value is 1.
SetFitToPagesTallRepresents the number of pages tall the worksheet will be scaled to when it’s printed.The default value is 1.
GetFitToPagesWideRepresents the number of pages wide the worksheet will be scaled to when it’s printed.The default value is 1.
SetFitToPagesWideRepresents the number of pages wide the worksheet will be scaled to when it’s printed.The default value is 1.
IsPercentScaleIf this property is False, the FitToPagesWide and FitToPagesTall properties control how the worksheet is scaled.
SetIsPercentScaleIf this property is False, the FitToPagesWide and FitToPagesTall properties control how the worksheet is scaled.
GetOrderRepresents the order that Microsoft Excel uses to number pages when printing a large worksheet.
SetOrderRepresents the order that Microsoft Excel uses to number pages when printing a large worksheet.
IsAutomaticPaperSizeIndicates whether the paper size is automatic.
GetPaperSizeRepresents the size of the paper.
SetPaperSizeRepresents the size of the paper.
GetPaperWidthGets the width of the paper in unit of inches, considered page orientation.
GetPaperHeightGets the height of the paper in unit of inches , considered page orientation.
CustomPaperSizeSets the custom paper size, in unit of inches.
GetOrientationRepresents page print orientation.
SetOrientationRepresents page print orientation.
GetPrintCommentsRepresents the way comments are printed with the sheet.
SetPrintCommentsRepresents the way comments are printed with the sheet.
GetPrintErrorsSpecifies the type of print error displayed.
SetPrintErrorsSpecifies the type of print error displayed.
GetPrintHeadingsRepresents if row and column headings are printed with this page.
SetPrintHeadingsRepresents if row and column headings are printed with this page.
GetPrintGridlinesRepresents if cell gridlines are printed on the page.
SetPrintGridlinesRepresents if cell gridlines are printed on the page.
GetZoomRepresents the scaling factor in percent. It should be between 10 and 400.
SetZoomRepresents the scaling factor in percent. It should be between 10 and 400.
IsAutoFirstPageNumberIndicates whether the first the page number is automatically assigned.
SetIsAutoFirstPageNumberIndicates whether the first the page number is automatically assigned.
GetPrintQualityRepresents the print quality.
SetPrintQualityRepresents the print quality.
GetPrintCopiesGet and sets number of copies to print.
SetPrintCopiesGet and sets number of copies to print.
ClearHeaderFooterClears header and footer setting.
GetHeaderGets a script formatting the header of an Excel file.
GetFooterGets a script formatting the footer of an Excel file.
SetHeaderSets a script formatting the header of an Excel file.
SetFooterSets a script formatting the footer of an Excel file.
SetEvenHeaderSets a script formatting the even page header of an Excel file.Only effect in Excel 2007 when IsHFDiffOddEven is true.
GetEvenHeaderGets a script formatting the even header of an Excel file.
SetEvenFooterSets a script formatting the even page footer of an Excel file.Only effect in Excel 2007 when IsHFDiffOddEven is true.
GetEvenFooterGets a script formatting the even footer of an Excel file.
SetFirstPageHeaderSets a script formatting the first page header of an Excel file.Only effect in Excel 2007 when IsHFDiffFirst is true.
GetFirstPageHeaderGets a script formatting the first page header of an Excel file.
SetFirstPageFooterSets a script formatting the first page footer of an Excel file.
GetFirstPageFooterGets a script formatting the first page footer of an Excel file.
IsHFDiffOddEvenTrue means that the header/footer of the odd pages is different with odd pages.
SetIsHFDiffOddEvenTrue means that the header/footer of the odd pages is different with odd pages.
IsHFDiffFirstTrue means that the header/footer of the first page is different with other pages.
SetIsHFDiffFirstTrue means that the header/footer of the first page is different with other pages.
IsHFScaleWithDocIndicates whether header and footer are scaled with document scaling.Only applies for Excel 2007.
SetIsHFScaleWithDocIndicates whether header and footer are scaled with document scaling.Only applies for Excel 2007.
IsHFAlignMarginsIndicates whether header and footer margins are aligned with the page margins.If this property is true, the left header and footer will be aligned with the left margin,and the right header and footer will be aligned with the right margin.This option is enabled by default.
SetIsHFAlignMarginsIndicates whether header and footer margins are aligned with the page margins.If this property is true, the left header and footer will be aligned with the left margin,and the right header and footer will be aligned with the right margin.This option is enabled by default.
GetPicture_Bool_IntGets the object of the header / footer.
GetPicture_Bool_Bool_Bool_IntGets the object of the header / footer.