PageSetup

Overview

PageSetup is a struct in Aspose.Cells FOSS for Rust. Inherits from: Debug, Clone, PartialEq, and 1 more.

Represents worksheet print and page-layout settings.

This struct provides 102 methods for working with PageSetup objects in Rust programs. Available methods include: add_horizontal_page_break, add_vertical_page_break, bottom_margin, bottom_margin_inch, center_footer, center_header, center_horizontally, center_vertically, clear_horizontal_page_breaks, clear_vertical_page_breaks, first_page_number, fit_to_pages_tall, and 90 additional methods. All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.

Methods

SignatureDescription
new()SelfInitializes a new instance.
paper_size()PaperSizeTypeGets the paper size.
get_paper_size()PaperSizeTypeGets the paper size.
set_paper_size(value: PaperSizeType)Sets the paper size.
orientation()PageOrientationTypeGets the page orientation.
get_orientation()PageOrientationTypeGets the page orientation.
set_orientation(value: PageOrientationType)Sets the page orientation.
first_page_number()Option<i32>Gets the first printed page number.
get_first_page_number()Option<i32>Gets the first printed page number.
set_first_page_number(value: Option<i32>)Result<(), CellsError>Sets the first printed page number.
scale()Option<i32>Gets the print scaling percentage.
get_scale()Option<i32>Gets the print scaling percentage.
set_scale(value: Option<i32>)Result<(), CellsError>Sets the print scaling percentage.
fit_to_pages_wide()Option<i32>Gets the number of pages wide to fit when printing.
get_fit_to_pages_wide()Option<i32>Gets the number of pages wide to fit when printing.
set_fit_to_pages_wide(value: Option<i32>)Result<(), CellsError>Sets the number of pages wide to fit when printing.
fit_to_pages_tall()Option<i32>Gets the number of pages tall to fit when printing.
get_fit_to_pages_tall()Option<i32>Gets the number of pages tall to fit when printing.
set_fit_to_pages_tall(value: Option<i32>)Result<(), CellsError>Sets the number of pages tall to fit when printing.
print_area()&strGets the print area reference.
get_print_area()&strGets the print area reference.
set_print_area(value: impl Into<String>)Sets the print area reference.
print_title_rows()&strGets the repeating title rows reference.
get_print_title_rows()&strGets the repeating title rows reference.
set_print_title_rows(value: impl Into<String>)Sets the repeating title rows reference.
print_title_columns()&strGets the repeating title columns reference.
get_print_title_columns()&strGets the repeating title columns reference.
set_print_title_columns(value: impl Into<String>)Sets the repeating title columns reference.
left_margin()f64Gets the left margin in centimeters.
get_left_margin()f64Gets the left margin in centimeters.
set_left_margin(value: f64)Result<(), CellsError>Sets the left margin in centimeters.
right_margin()f64Gets the right margin in centimeters.
get_right_margin()f64Gets the right margin in centimeters.
set_right_margin(value: f64)Result<(), CellsError>Sets the right margin in centimeters.
top_margin()f64Gets the top margin in centimeters.
get_top_margin()f64Gets the top margin in centimeters.
set_top_margin(value: f64)Result<(), CellsError>Sets the top margin in centimeters.
bottom_margin()f64Gets the bottom margin in centimeters.
get_bottom_margin()f64Gets the bottom margin in centimeters.
set_bottom_margin(value: f64)Result<(), CellsError>Sets the bottom margin in centimeters.
header_margin()f64Gets the header margin in centimeters.
get_header_margin()f64Gets the header margin in centimeters.
set_header_margin(value: f64)Result<(), CellsError>Sets the header margin in centimeters.
footer_margin()f64Gets the footer margin in centimeters.
get_footer_margin()f64Gets the footer margin in centimeters.
set_footer_margin(value: f64)Result<(), CellsError>Sets the footer margin in centimeters.
left_margin_inch()f64Gets the left margin in inches.
get_left_margin_inch()f64Gets the left margin in inches.
set_left_margin_inch(value: f64)Result<(), CellsError>Sets the left margin in inches.
right_margin_inch()f64Gets the right margin in inches.
get_right_margin_inch()f64Gets the right margin in inches.
set_right_margin_inch(value: f64)Result<(), CellsError>Sets the right margin in inches.
top_margin_inch()f64Gets the top margin in inches.
get_top_margin_inch()f64Gets the top margin in inches.
set_top_margin_inch(value: f64)Result<(), CellsError>Sets the top margin in inches.
bottom_margin_inch()f64Gets the bottom margin in inches.
get_bottom_margin_inch()f64Gets the bottom margin in inches.
set_bottom_margin_inch(value: f64)Result<(), CellsError>Sets the bottom margin in inches.
header_margin_inch()f64Gets the header margin in inches.
get_header_margin_inch()f64Gets the header margin in inches.
set_header_margin_inch(value: f64)Result<(), CellsError>Sets the header margin in inches.
footer_margin_inch()f64Gets the footer margin in inches.
get_footer_margin_inch()f64Gets the footer margin in inches.
set_footer_margin_inch(value: f64)Result<(), CellsError>Sets the footer margin in inches.
left_header()&strGets the left header text.
get_left_header()&strGets the left header text.
set_left_header(value: impl Into<String>)Sets the left header text.
center_header()&strGets the center header text.
get_center_header()&strGets the center header text.
set_center_header(value: impl Into<String>)Sets the center header text.
right_header()&strGets the right header text.
get_right_header()&strGets the right header text.
set_right_header(value: impl Into<String>)Sets the right header text.
left_footer()&strGets the left footer text.
get_left_footer()&strGets the left footer text.
set_left_footer(value: impl Into<String>)Sets the left footer text.
center_footer()&strGets the center footer text.
get_center_footer()&strGets the center footer text.
set_center_footer(value: impl Into<String>)Sets the center footer text.
right_footer()&strGets the right footer text.
get_right_footer()&strGets the right footer text.
set_right_footer(value: impl Into<String>)Sets the right footer text.
print_gridlines()boolGets whether gridlines are printed.
get_print_gridlines()boolGets whether gridlines are printed.
set_print_gridlines(value: bool)Sets whether gridlines are printed.
print_headings()boolGets whether row and column headings are printed.
get_print_headings()boolGets whether row and column headings are printed.
set_print_headings(value: bool)Sets whether row and column headings are printed.
center_horizontally()boolGets whether content is centered horizontally on the page.
get_center_horizontally()boolGets whether content is centered horizontally on the page.
set_center_horizontally(value: bool)Sets whether content is centered horizontally on the page.
center_vertically()boolGets whether content is centered vertically on the page.
get_center_vertically()boolGets whether content is centered vertically on the page.
set_center_vertically(value: bool)Sets whether content is centered vertically on the page.
horizontal_page_breaks()Vec<i32>Gets the horizontal page breaks as sorted zero-based row indexes.
get_horizontal_page_breaks()Vec<i32>Gets the horizontal page breaks as sorted zero-based row indexes.
vertical_page_breaks()Vec<i32>Gets the vertical page breaks as sorted zero-based column indexes.
get_vertical_page_breaks()Vec<i32>Gets the vertical page breaks as sorted zero-based column indexes.
add_horizontal_page_break(row_index: i32)Result<(), CellsError>Adds an item.
add_vertical_page_break(column_index: i32)Result<(), CellsError>Adds an item.
clear_horizontal_page_breaks()Clears horizontal page breaks.
clear_vertical_page_breaks()Clears vertical page breaks.

See Also