PageSetup Class
Contents
[
Hide
]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
Method | Description |
---|
Methods
Method | Description |
---|---|
IsNull | Checks whether the implementation object is nullptr. |
GetODSPageBackground | Gets the background of ODS. |
Copy | Copies the setting of the page setup. |
GetPrintArea | Represents the range to be printed. |
SetPrintArea | Represents the range to be printed. |
GetPrintTitleColumns | Represents the columns that contain the cells to be repeated on the left side of each page. |
SetPrintTitleColumns | Represents the columns that contain the cells to be repeated on the left side of each page. |
GetPrintTitleRows | Represents the rows that contain the cells to be repeated at the top of each page. |
SetPrintTitleRows | Represents the rows that contain the cells to be repeated at the top of each page. |
GetBlackAndWhite | Represents if elements of the document will be printed in black and white. |
SetBlackAndWhite | Represents if elements of the document will be printed in black and white. |
GetCenterHorizontally | Represent if the sheet is printed centered horizontally. |
SetCenterHorizontally | Represent if the sheet is printed centered horizontally. |
GetCenterVertically | Represent if the sheet is printed centered vertically. |
SetCenterVertically | Represent if the sheet is printed centered vertically. |
GetPrintDraft | Represents if the sheet will be printed without graphics. |
SetPrintDraft | Represents if the sheet will be printed without graphics. |
GetFooterMargin | Represents the distance from the bottom of the page to the footer, in unit of centimeters. |
SetFooterMargin | Represents the distance from the bottom of the page to the footer, in unit of centimeters. |
GetFooterMarginInch | Represents the distance from the bottom of the page to the footer, in unit of inches. |
SetFooterMarginInch | Represents the distance from the bottom of the page to the footer, in unit of inches. |
GetHeaderMargin | Represents the distance from the top of the page to the header, in unit of centimeters. |
SetHeaderMargin | Represents the distance from the top of the page to the header, in unit of centimeters. |
GetHeaderMarginInch | Represents the distance from the top of the page to the header, in unit of inches. |
SetHeaderMarginInch | Represents the distance from the top of the page to the header, in unit of inches. |
GetLeftMargin | Represents the size of the left margin, in unit of centimeters. |
SetLeftMargin | Represents the size of the left margin, in unit of centimeters. |
GetLeftMarginInch | Represents the size of the left margin, in unit of inches. |
SetLeftMarginInch | Represents the size of the left margin, in unit of inches. |
GetRightMargin | Represents the size of the right margin, in unit of centimeters. |
SetRightMargin | Represents the size of the right margin, in unit of centimeters. |
GetRightMarginInch | Represents the size of the right margin, in unit of inches. |
SetRightMarginInch | Represents the size of the right margin, in unit of inches. |
GetTopMargin | Represents the size of the top margin, in unit of centimeters. |
SetTopMargin | Represents the size of the top margin, in unit of centimeters. |
GetTopMarginInch | Represents the size of the top margin, in unit of inches. |
SetTopMarginInch | Represents the size of the top margin, in unit of inches. |
GetBottomMargin | Represents the size of the bottom margin, in unit of centimeters. |
SetBottomMargin | Represents the size of the bottom margin, in unit of centimeters. |
GetBottomMarginInch | Represents the size of the bottom margin, in unit of inches. |
SetBottomMarginInch | Represents the size of the bottom margin, in unit of inches. |
GetFirstPageNumber | Represents the first page number that will be used when this sheet is printed. |
SetFirstPageNumber | Represents the first page number that will be used when this sheet is printed. |
SetFitToPages | Sets the number of pages the worksheet will be scaled to when it’s printed. |
GetFitToPagesTall | Represents the number of pages tall the worksheet will be scaled to when it’s printed.The default value is 1. |
SetFitToPagesTall | Represents the number of pages tall the worksheet will be scaled to when it’s printed.The default value is 1. |
GetFitToPagesWide | Represents the number of pages wide the worksheet will be scaled to when it’s printed.The default value is 1. |
SetFitToPagesWide | Represents the number of pages wide the worksheet will be scaled to when it’s printed.The default value is 1. |
IsPercentScale | If this property is False, the FitToPagesWide and FitToPagesTall properties control how the worksheet is scaled. |
SetIsPercentScale | If this property is False, the FitToPagesWide and FitToPagesTall properties control how the worksheet is scaled. |
GetOrder | Represents the order that Microsoft Excel uses to number pages when printing a large worksheet. |
SetOrder | Represents the order that Microsoft Excel uses to number pages when printing a large worksheet. |
IsAutomaticPaperSize | Indicates whether the paper size is automatic. |
GetPaperSize | Represents the size of the paper. |
SetPaperSize | Represents the size of the paper. |
GetPaperWidth | Gets the width of the paper in unit of inches, considered page orientation. |
GetPaperHeight | Gets the height of the paper in unit of inches , considered page orientation. |
CustomPaperSize | Sets the custom paper size, in unit of inches. |
GetOrientation | Represents page print orientation. |
SetOrientation | Represents page print orientation. |
GetPrintComments | Represents the way comments are printed with the sheet. |
SetPrintComments | Represents the way comments are printed with the sheet. |
GetPrintErrors | Specifies the type of print error displayed. |
SetPrintErrors | Specifies the type of print error displayed. |
GetPrintHeadings | Represents if row and column headings are printed with this page. |
SetPrintHeadings | Represents if row and column headings are printed with this page. |
GetPrintGridlines | Represents if cell gridlines are printed on the page. |
SetPrintGridlines | Represents if cell gridlines are printed on the page. |
GetZoom | Represents the scaling factor in percent. It should be between 10 and 400. |
SetZoom | Represents the scaling factor in percent. It should be between 10 and 400. |
IsAutoFirstPageNumber | Indicates whether the first the page number is automatically assigned. |
SetIsAutoFirstPageNumber | Indicates whether the first the page number is automatically assigned. |
GetPrintQuality | Represents the print quality. |
SetPrintQuality | Represents the print quality. |
GetPrintCopies | Get and sets number of copies to print. |
SetPrintCopies | Get and sets number of copies to print. |
ClearHeaderFooter | Clears header and footer setting. |
GetHeader | Gets a script formatting the header of an Excel file. |
GetFooter | Gets a script formatting the footer of an Excel file. |
SetHeader | Sets a script formatting the header of an Excel file. |
SetFooter | Sets a script formatting the footer of an Excel file. |
SetEvenHeader | Sets a script formatting the even page header of an Excel file.Only effect in Excel 2007 when IsHFDiffOddEven is true. |
GetEvenHeader | Gets a script formatting the even header of an Excel file. |
SetEvenFooter | Sets a script formatting the even page footer of an Excel file.Only effect in Excel 2007 when IsHFDiffOddEven is true. |
GetEvenFooter | Gets a script formatting the even footer of an Excel file. |
SetFirstPageHeader | Sets a script formatting the first page header of an Excel file.Only effect in Excel 2007 when IsHFDiffFirst is true. |
GetFirstPageHeader | Gets a script formatting the first page header of an Excel file. |
SetFirstPageFooter | Sets a script formatting the first page footer of an Excel file. |
GetFirstPageFooter | Gets a script formatting the first page footer of an Excel file. |
IsHFDiffOddEven | True means that the header/footer of the odd pages is different with odd pages. |
SetIsHFDiffOddEven | True means that the header/footer of the odd pages is different with odd pages. |
IsHFDiffFirst | True means that the header/footer of the first page is different with other pages. |
SetIsHFDiffFirst | True means that the header/footer of the first page is different with other pages. |
IsHFScaleWithDoc | Indicates whether header and footer are scaled with document scaling.Only applies for Excel 2007. |
SetIsHFScaleWithDoc | Indicates whether header and footer are scaled with document scaling.Only applies for Excel 2007. |
IsHFAlignMargins | Indicates 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. |
SetIsHFAlignMargins | Indicates 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_Int | Gets the |
GetPicture_Bool_Bool_Bool_Int | Gets the |