PageSetup
Overview
PageSetup is a class in Aspose.Cells FOSS for C++.
Represents worksheet print and page-layout settings.
Methods
| Signature | Description |
|---|---|
GetPaperSize() → PaperSizeType | Gets or sets the paper size. |
SetPaperSize(value: PaperSizeType) | |
GetOrientation() → PageOrientationType | Gets or sets the page orientation. |
SetOrientation(value: PageOrientationType) | |
GetFirstPageNumber() → std::optional<int> | Gets or sets the first printed page number. |
SetFirstPageNumber(value: std::optional<int>) | |
GetScale() → std::optional<int> | Gets or sets the print scaling percentage. |
SetScale(value: std::optional<int>) | |
GetFitToPagesWide() → std::optional<int> | Gets or sets the number of pages wide to fit when printing. |
SetFitToPagesWide(value: std::optional<int>) | |
GetFitToPagesTall() → std::optional<int> | Gets or sets the number of pages tall to fit when printing. |
SetFitToPagesTall(value: std::optional<int>) | |
GetPrintArea() → std::string | Gets or sets the print area reference. |
SetPrintArea(value: std::string_view) | |
GetPrintTitleRows() → std::string | Gets or sets the repeating title rows reference. |
SetPrintTitleRows(value: std::string_view) | |
GetPrintTitleColumns() → std::string | Gets or sets the repeating title columns reference. |
SetPrintTitleColumns(value: std::string_view) | |
GetLeftMargin() → double | Gets or sets the left margin in centimeters. |
SetLeftMargin(value: double) | |
GetRightMargin() → double | Gets or sets the right margin in centimeters. |
SetRightMargin(value: double) | |
GetTopMargin() → double | Gets or sets the top margin in centimeters. |
SetTopMargin(value: double) | |
GetBottomMargin() → double | Gets or sets the bottom margin in centimeters. |
SetBottomMargin(value: double) | |
GetHeaderMargin() → double | Gets or sets the header margin in centimeters. |
SetHeaderMargin(value: double) | |
GetFooterMargin() → double | Gets or sets the footer margin in centimeters. |
SetFooterMargin(value: double) | |
GetLeftMarginInch() → double | Gets or sets the left margin in inches. |
SetLeftMarginInch(value: double) | |
GetRightMarginInch() → double | Gets or sets the right margin in inches. |
SetRightMarginInch(value: double) | |
GetTopMarginInch() → double | Gets or sets the top margin in inches. |
SetTopMarginInch(value: double) | |
GetBottomMarginInch() → double | Gets or sets the bottom margin in inches. |
SetBottomMarginInch(value: double) | |
GetHeaderMarginInch() → double | Gets or sets the header margin in inches. |
SetHeaderMarginInch(value: double) | |
GetFooterMarginInch() → double | Gets or sets the footer margin in inches. |
SetFooterMarginInch(value: double) | |
GetLeftHeader() → std::string | Gets or sets the left header text. |
SetLeftHeader(value: std::string_view) | |
GetCenterHeader() → std::string | Gets or sets the center header text. |
SetCenterHeader(value: std::string_view) | |
GetRightHeader() → std::string | Gets or sets the right header text. |
SetRightHeader(value: std::string_view) | |
GetLeftFooter() → std::string | Gets or sets the left footer text. |
SetLeftFooter(value: std::string_view) | |
GetCenterFooter() → std::string | Gets or sets the center footer text. |
SetCenterFooter(value: std::string_view) | |
GetRightFooter() → std::string | Gets or sets the right footer text. |
SetRightFooter(value: std::string_view) | |
GetPrintGridlines() → bool | Gets or sets whether gridlines are printed. |
SetPrintGridlines(value: bool) | |
GetPrintHeadings() → bool | Gets or sets whether row and column headings are printed. |
SetPrintHeadings(value: bool) | |
GetCenterHorizontally() → bool | Gets or sets whether content is centered horizontally on the page. |
SetCenterHorizontally(value: bool) | |
GetCenterVertically() → bool | Gets or sets whether content is centered vertically on the page. |
SetCenterVertically(value: bool) | |
GetHorizontalPageBreaks() → std::vector<int> | Gets the horizontal page breaks as sorted zero-based row indexes. |
GetVerticalPageBreaks() → std::vector<int> | Gets the vertical page breaks as sorted zero-based column indexes. |
AddHorizontalPageBreak(rowIndex: int) | Adds a horizontal page break at the specified zero-based row index. |
AddVerticalPageBreak(columnIndex: int) | Adds a vertical page break at the specified zero-based column index. |
ClearHorizontalPageBreaks() | Removes all horizontal page breaks. |
ClearVerticalPageBreaks() | Removes all vertical page breaks. |