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

SignatureDescription
GetPaperSize() → PaperSizeTypeGets or sets the paper size.
SetPaperSize(value: PaperSizeType)Sets the paper size value.
GetOrientation() → PageOrientationTypeGets 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::stringGets or sets the print area reference.
SetPrintArea(value: std::string_view)Sets the print area value.
GetPrintTitleRows() → std::stringGets or sets the repeating title rows reference.
SetPrintTitleRows(value: std::string_view)Sets the print title rows value.
GetPrintTitleColumns() → std::stringGets or sets the repeating title columns reference.
SetPrintTitleColumns(value: std::string_view)Sets the print title columns value.
GetLeftMargin() → doubleGets or sets the left margin in centimeters.
SetLeftMargin(value: double)Sets the left margin value.
GetRightMargin() → doubleGets or sets the right margin in centimeters.
SetRightMargin(value: double)Sets the right margin value.
GetTopMargin() → doubleGets or sets the top margin in centimeters.
SetTopMargin(value: double)Sets the top margin value.
GetBottomMargin() → doubleGets or sets the bottom margin in centimeters.
SetBottomMargin(value: double)Sets the bottom margin value.
GetHeaderMargin() → doubleGets or sets the header margin in centimeters.
SetHeaderMargin(value: double)Sets the header margin value.
GetFooterMargin() → doubleGets or sets the footer margin in centimeters.
SetFooterMargin(value: double)Sets the footer margin value.
GetLeftMarginInch() → doubleGets or sets the left margin in inches.
SetLeftMarginInch(value: double)Sets the left margin inch value.
GetRightMarginInch() → doubleGets or sets the right margin in inches.
SetRightMarginInch(value: double)Sets the right margin inch value.
GetTopMarginInch() → doubleGets or sets the top margin in inches.
SetTopMarginInch(value: double)Sets the top margin inch value.
GetBottomMarginInch() → doubleGets or sets the bottom margin in inches.
SetBottomMarginInch(value: double)Sets the bottom margin inch value.
GetHeaderMarginInch() → doubleGets or sets the header margin in inches.
SetHeaderMarginInch(value: double)Sets the header margin inch value.
GetFooterMarginInch() → doubleGets or sets the footer margin in inches.
SetFooterMarginInch(value: double)Sets the footer margin inch value.
GetLeftHeader() → std::stringGets or sets the left header text.
SetLeftHeader(value: std::string_view)Sets the left header value.
GetCenterHeader() → std::stringGets or sets the center header text.
SetCenterHeader(value: std::string_view)Sets the center header value.
GetRightHeader() → std::stringGets or sets the right header text.
SetRightHeader(value: std::string_view)Sets the right header value.
GetLeftFooter() → std::stringGets or sets the left footer text.
SetLeftFooter(value: std::string_view)Sets the left footer value.
GetCenterFooter() → std::stringGets or sets the center footer text.
SetCenterFooter(value: std::string_view)Sets the center footer value.
GetRightFooter() → std::stringGets or sets the right footer text.
SetRightFooter(value: std::string_view)Sets the right footer value.
GetPrintGridlines() → boolGets or sets whether gridlines are printed.
SetPrintGridlines(value: bool)Sets the print gridlines value.
GetPrintHeadings() → boolGets or sets whether row and column headings are printed.
SetPrintHeadings(value: bool)Sets the print headings value.
GetCenterHorizontally() → boolGets or sets whether content is centered horizontally on the page.
SetCenterHorizontally(value: bool)Sets the center horizontally value.
GetCenterVertically() → boolGets 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.

See Also

 English