PageSetup
PageSetup
概述
PageSetup 是 Aspose.Cells 为 C++ 提供的 FOSS 中的一个类。
表示工作表的打印和页面布局设置。
此类提供68个方法,用于在 C++ 程序中处理 PageSetup 对象。可用的方法包括:AddHorizontalPageBreak、AddVerticalPageBreak、ClearHorizontalPageBreaks、ClearVerticalPageBreaks、GetBottomMargin、GetBottomMarginInch、GetCenterFooter、GetCenterHeader、GetCenterHorizontally、GetCenterVertically、GetFirstPageNumber、GetFitToPagesTall,以及另外56个方法。安装 Aspose.Cells 为 C++ 提供的 FOSS 包后,所有公共成员均可供任何 C++ 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
GetPaperSize() → PaperSizeType | 获取或设置纸张大小。 |
SetPaperSize(value: PaperSizeType) | 设置纸张大小的值。 |
GetOrientation() → PageOrientationType | 获取或设置页面方向。 |
SetOrientation(value: PageOrientationType) | 设置方向值。 |
GetFirstPageNumber() → std::optional<int> | 获取或设置第一个打印页的页码。 |
SetFirstPageNumber(value: std::optional<int>) | 设置首页页码值。 |
GetScale() → std::optional<int> | 获取或设置打印缩放百分比。 |
SetScale(value: std::optional<int>) | 设置比例值。 |
GetFitToPagesWide() → std::optional<int> | 获取或设置打印时适合的页面宽度(页数)。 |
SetFitToPagesWide(value: std::optional<int>) | 设置适合页面宽度的值。 |
GetFitToPagesTall() → std::optional<int> | 获取或设置在打印时适合的页数(高度)。 |
SetFitToPagesTall(value: std::optional<int>) | 设置适合的页面高度值。 |
GetPrintArea() → std::string | 获取或设置打印区域引用。 |
SetPrintArea(value: std::string_view) | 设置打印区域的值。 |
GetPrintTitleRows() → std::string | 获取或设置重复标题行的引用。 |
SetPrintTitleRows(value: std::string_view) | 设置打印标题行的值。 |
GetPrintTitleColumns() → std::string | 获取或设置重复标题列的引用。 |
SetPrintTitleColumns(value: std::string_view) | 设置打印标题列的值。 |
GetLeftMargin() → double | 获取或设置左边距(以厘米为单位)。 |
SetLeftMargin(value: double) | 设置左边距的值。 |
GetRightMargin() → double | 获取或设置右边距(以厘米为单位)。 |
SetRightMargin(value: double) | 设置右边距的值。 |
GetTopMargin() → double | 获取或设置顶部边距(以厘米为单位)。 |
SetTopMargin(value: double) | 设置顶部边距值。 |
GetBottomMargin() → double | 获取或设置以厘米为单位的底部边距。 |
SetBottomMargin(value: double) | 设置底部边距的值。 |
GetHeaderMargin() → double | 获取或设置 header margin(单位为厘米)。 |
SetHeaderMargin(value: double) | 设置页眉边距值。 |
GetFooterMargin() → double | 获取或设置页脚边距(单位为厘米)。 |
SetFooterMargin(value: double) | 设置页脚边距的值。 |
GetLeftMarginInch() → double | 获取或设置左边距(单位为英寸)。 |
SetLeftMarginInch(value: double) | 设置左边距英寸值。 |
GetRightMarginInch() → double | 获取或设置以英寸为单位的右边距。 |
SetRightMarginInch(value: double) | 设置右边距英寸值。 |
GetTopMarginInch() → double | 获取或设置顶部边距(以英寸为单位)。 |
SetTopMarginInch(value: double) | 设置上边距英寸值。 |
GetBottomMarginInch() → double | 获取或设置底部边距(单位为英寸)。 |
SetBottomMarginInch(value: double) | 设置底部边距的英寸值。 |
GetHeaderMarginInch() → double | 获取或设置页眉边距(以英寸为单位)。 |
SetHeaderMarginInch(value: double) | 设置页眉边距的英寸值。 |
GetFooterMarginInch() → double | 获取或设置页脚边距(以英寸为单位)。 |
SetFooterMarginInch(value: double) | 设置页脚边距的英寸值。 |
GetLeftHeader() → std::string | 获取或设置左页眉文本。 |
SetLeftHeader(value: std::string_view) | 设置左页眉的值。 |
GetCenterHeader() → std::string | 获取或设置居中页眉文本。 |
SetCenterHeader(value: std::string_view) | 设置居中页眉的值。 |
GetRightHeader() → std::string | 获取或设置右页眉文本。 |
SetRightHeader(value: std::string_view) | 设置右页眉的值。 |
GetLeftFooter() → std::string | 获取或设置左页脚文本。 |
SetLeftFooter(value: std::string_view) | 设置左页脚的值。 |
GetCenterFooter() → std::string | 获取或设置居中页脚文本。 |
SetCenterFooter(value: std::string_view) | 设置居中页脚的值。 |
GetRightFooter() → std::string | 获取或设置右页脚文本。 |
SetRightFooter(value: std::string_view) | 设置右页脚的值。 |
GetPrintGridlines() → bool | 获取或设置是否打印网格线。 |
SetPrintGridlines(value: bool) | 设置打印网格线的值。 |
GetPrintHeadings() → bool | 获取或设置是否打印行和列标题。 |
SetPrintHeadings(value: bool) | 设置打印标题的值。 |
GetCenterHorizontally() → bool | 获取或设置内容是否在页面上水平居中。 |
SetCenterHorizontally(value: bool) | 设置水平居中值。 |
GetCenterVertically() → bool | 获取或设置内容是否在页面上垂直居中。 |
SetCenterVertically(value: bool) | 设置垂直居中值。 |
GetHorizontalPageBreaks() → std::vector<int> | 获取水平分页符,作为已排序的零基行索引。 |
GetVerticalPageBreaks() → std::vector<int> | 获取垂直分页符,返回已排序的零基列索引。 |
AddHorizontalPageBreak(rowIndex: int) | 在指定的零基行索引处添加水平分页符。 |
AddVerticalPageBreak(columnIndex: int) | 在指定的零基列索引处添加垂直分页符。 |
ClearHorizontalPageBreaks() | 移除所有水平分页符。 |
ClearVerticalPageBreaks() | 删除所有垂直分页符。 |