PageSetup
Overview
PageSetup is a class in Aspose.Cells FOSS for C++.
Represents worksheet print and page-layout settings.
This class provides 68 methods for working with PageSetup objects in C++ programs.
Available methods include: AddHorizontalPageBreak, AddVerticalPageBreak, ClearHorizontalPageBreaks, ClearVerticalPageBreaks, GetBottomMargin, GetBottomMarginInch, GetCenterFooter, GetCenterHeader, GetCenterHorizontally, GetCenterVertically, GetFirstPageNumber, GetFitToPagesTall, and 56 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
GetPaperSize() → PaperSizeType | Gets or sets the paper size. |
SetPaperSize(value: PaperSizeType) | Sets the paper size value. |
GetOrientation() → PageOrientationType | Gets or sets the page orientation. |
SetOrientation(value: PageOrientationType) | Sets the orientation value. |
GetFirstPageNumber() → std::optional<int> | Gets or sets the first printed page number. |
SetFirstPageNumber(value: std::optional<int>) | Sets the first page number value. |
GetScale() → std::optional<int> | Gets or sets the print scaling percentage. |
SetScale(value: std::optional<int>) | Sets the scale value. |
GetFitToPagesWide() → std::optional<int> | Gets or sets the number of pages wide to fit when printing. |
SetFitToPagesWide(value: std::optional<int>) | Sets the fit to pages wide value. |
GetFitToPagesTall() → std::optional<int> | Gets or sets the number of pages tall to fit when printing. |
SetFitToPagesTall(value: std::optional<int>) | Sets the fit to pages tall value. |
GetPrintArea() → std::string | Gets or sets the print area reference. |
SetPrintArea(value: std::string_view) | Sets the print area value. |
GetPrintTitleRows() → std::string | Gets or sets the repeating title rows reference. |
SetPrintTitleRows(value: std::string_view) | Sets the print title rows value. |
GetPrintTitleColumns() → std::string | Gets or sets the repeating title columns reference. |
SetPrintTitleColumns(value: std::string_view) | Sets the print title columns value. |
GetLeftMargin() → double | Gets or sets the left margin in centimeters. |
SetLeftMargin(value: double) | Sets the left margin value. |
GetRightMargin() → double | Gets or sets the right margin in centimeters. |
SetRightMargin(value: double) | Sets the right margin value. |
GetTopMargin() → double | Gets or sets the top margin in centimeters. |
SetTopMargin(value: double) | Sets the top margin value. |
GetBottomMargin() → double | Gets or sets the bottom margin in centimeters. |
SetBottomMargin(value: double) | Sets the bottom margin value. |
GetHeaderMargin() → double | Gets or sets the header margin in centimeters. |
SetHeaderMargin(value: double) | Sets the header margin value. |
GetFooterMargin() → double | Gets or sets the footer margin in centimeters. |
SetFooterMargin(value: double) | Sets the footer margin value. |
GetLeftMarginInch() → double | Gets or sets the left margin in inches. |
SetLeftMarginInch(value: double) | Sets the left margin inch value. |
GetRightMarginInch() → double | Gets or sets the right margin in inches. |
SetRightMarginInch(value: double) | Sets the right margin inch value. |
GetTopMarginInch() → double | Gets or sets the top margin in inches. |
SetTopMarginInch(value: double) | Sets the top margin inch value. |
GetBottomMarginInch() → double | Gets or sets the bottom margin in inches. |
SetBottomMarginInch(value: double) | Sets the bottom margin inch value. |
GetHeaderMarginInch() → double | Gets or sets the header margin in inches. |
SetHeaderMarginInch(value: double) | Sets the header margin inch value. |
GetFooterMarginInch() → double | Gets or sets the footer margin in inches. |
SetFooterMarginInch(value: double) | Sets the footer margin inch value. |
GetLeftHeader() → std::string | Gets or sets the left header text. |
SetLeftHeader(value: std::string_view) | Sets the left header value. |
GetCenterHeader() → std::string | Gets or sets the center header text. |
SetCenterHeader(value: std::string_view) | Sets the center header value. |
GetRightHeader() → std::string | Gets or sets the right header text. |
SetRightHeader(value: std::string_view) | Sets the right header value. |
GetLeftFooter() → std::string | Gets or sets the left footer text. |
SetLeftFooter(value: std::string_view) | Sets the left footer value. |
GetCenterFooter() → std::string | Gets or sets the center footer text. |
SetCenterFooter(value: std::string_view) | Sets the center footer value. |
GetRightFooter() → std::string | Gets or sets the right footer text. |
SetRightFooter(value: std::string_view) | Sets the right footer value. |
GetPrintGridlines() → bool | Gets or sets whether gridlines are printed. |
SetPrintGridlines(value: bool) | Sets the print gridlines value. |
GetPrintHeadings() → bool | Gets or sets whether row and column headings are printed. |
SetPrintHeadings(value: bool) | Sets the print headings value. |
GetCenterHorizontally() → bool | Gets or sets whether content is centered horizontally on the page. |
SetCenterHorizontally(value: bool) | Sets the center horizontally value. |
GetCenterVertically() → bool | Gets or sets whether content is centered vertically on the page. |
SetCenterVertically(value: bool) | Sets the center vertically value. |
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. |