Worksheet

Overview

Worksheet is a struct in Aspose.Cells FOSS for Rust. Inherits from: Debug, Clone, PartialEq.

Encapsulates a single worksheet and its supported v0.1 worksheet features.

This struct declares 93 methods for Worksheet objects in Rust programs. Available methods include: auto_filter, cells, charts, clear_column_width, clear_row_height, column_properties, columns, comments, conditional_formattings, freeze_pane, freeze_panes, get_auto_filter, and 81 additional methods. Public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.

Methods

SignatureDescription
name() → &strGets the worksheet name.
get_name() → &strGets the worksheet name.
set_name(name: impl Into<String>) → Result<(), CellsError>Sets the worksheet name.
set_name_or_cells_exception(name: impl Into<String>) → Result<(), CellsException>Sets the associated value.
visibility_type() → VisibilityTypeGets the worksheet visibility state.
get_visibility_type() → VisibilityTypeGets the worksheet visibility state.
set_visibility_type(value: VisibilityType)Sets the worksheet visibility state.
tab_color() → ColorGets the worksheet tab color.
get_tab_color() → ColorGets the worksheet tab color.
set_tab_color(value: Color)Sets the worksheet tab color.
show_gridlines() → boolGets whether gridlines are shown in the worksheet view.
get_show_gridlines() → boolGets whether gridlines are shown in the worksheet view.
set_show_gridlines(value: bool)Sets whether gridlines are shown in the worksheet view.
show_row_column_headers() → boolGets whether row and column headers are shown in the worksheet view.
get_show_row_column_headers() → boolGets whether row and column headers are shown in the worksheet view.
set_show_row_column_headers(value: bool)Sets whether row and column headers are shown in the worksheet view.
show_zeros() → boolGets whether zero values are shown in the worksheet view.
get_show_zeros() → boolGets whether zero values are shown in the worksheet view.
set_show_zeros(value: bool)Sets whether zero values are shown in the worksheet view.
right_to_left() → boolGets whether the worksheet view is right-to-left.
get_right_to_left() → boolGets whether the worksheet view is right-to-left.
set_right_to_left(value: bool)Sets whether the worksheet view is right-to-left.
zoom() → i32Gets the worksheet zoom percentage.
get_zoom() → i32Gets the worksheet zoom percentage.
set_zoom(value: i32) → Result<(), CellsError>Sets the worksheet zoom percentage.
set_zoom_or_cells_exception(value: i32) → Result<(), CellsException>Sets the associated value.
set_cell_value(row: u32, column: u32, value: CellValue)Sets the associated value.
get_cell_value(row: u32, column: u32) → Option<&CellValue>Gets the associated value.
set_cell_string(row: u32, column: u32, value: impl Into<String>)Sets the associated value.
set_cell_datetime(row: u32, column: u32, value: DateTime<Utc>)Sets the associated value.
set_cell_formula(row: u32, column: u32, value: impl Into<String>)Sets the associated value.
set_cell_formula_with_cached_value(row: u32, column: u32, formula: impl Into<String>, cached_value: CellValue)Sets the associated value.
get_formula_cached_value(row: u32, column: u32) → Option<&CellValue>Gets the associated value.
set_cell_style(row: u32, column: u32, style: CellStyle)Sets the associated value.
get_cell_style(row: u32, column: u32) → Option<&CellStyle>Gets the associated value.
set_cell_border(row: u32, column: u32, border: Border)Sets the associated value.
get_cell_border(row: u32, column: u32) → Option<&Border>Gets the associated value.
cells() → Cells<'_>Gets the cell grid facade for the worksheet.
get_cells() → Cells<'_>Gets the cell grid facade for the worksheet.
get_cells_mut() → CellsMut<'_>Gets the associated value.
page_setup() → &PageSetupGets page setup settings for the worksheet.
get_page_setup() → &PageSetupGets page setup settings for the worksheet.
get_page_setup_mut() → &mut PageSetupGets the associated value.
auto_filter() → AutoFilter<'_>Gets auto-filter settings for the worksheet.
get_auto_filter() → AutoFilter<'_>Gets auto-filter settings for the worksheet.
hyperlinks() → HyperlinkCollection<'_>Gets the worksheet hyperlink collection.
get_hyperlinks() → HyperlinkCollection<'_>Gets the worksheet hyperlink collection.
comments() → CommentCollection<'_>Gets the collection of comments (legacy notes) on this worksheet.
get_comments() → CommentCollection<'_>Gets the collection of comments (legacy notes) on this worksheet.
pictures() → PictureCollection<'_>Gets the collection of pictures on this worksheet.
get_pictures() → PictureCollection<'_>Gets the collection of pictures on this worksheet.
shapes() → ShapeCollection<'_>Gets the collection of drawing objects (shapes) on this worksheet.
get_shapes() → ShapeCollection<'_>Gets the collection of drawing objects (shapes) on this worksheet.
charts() → ChartCollection<'_>Gets the collection of charts on this worksheet.
get_charts() → ChartCollection<'_>Gets the collection of charts on this worksheet.
list_objects() → ListObjectCollection<'_>Gets the collection of Excel tables on this worksheet.
get_list_objects() → ListObjectCollection<'_>Gets the collection of Excel tables on this worksheet.
sparkline_groups() → SparklineGroupCollection<'_>Gets the associated value.
get_sparkline_groups() → SparklineGroupCollection<'_>Gets the associated value.
validations() → ValidationCollection<'_>Gets the worksheet data validation collection.
get_validations() → ValidationCollection<'_>Gets the worksheet data validation collection.
conditional_formattings() → ConditionalFormattingCollection<'_>Gets the worksheet conditional formatting collection.
get_conditional_formattings() → ConditionalFormattingCollection<'_>Gets the worksheet conditional formatting collection.
rows() → Rows<'_>Gets the associated value.
get_rows() → Rows<'_>Gets the associated value.
get_rows_mut() → RowsMut<'_>Gets the associated value.
columns() → Columns<'_>Gets the associated value.
get_columns() → Columns<'_>Gets the associated value.
get_columns_mut() → ColumnsMut<'_>Gets the associated value.
freeze_panes(row_split: u32, column_split: u32)Gets the current freeze-pane settings, if any.
unfreeze_panes()Removes any frozen panes from the worksheet view.
freeze_pane() → Option<FreezePane>Gets the associated value.
get_freeze_pane() → Option<FreezePane>Gets the associated value.
has_freeze_panes() → boolReturns whether freeze panes.
protect()Marks the worksheet as protected using the current protection settings.
unprotect()Clears worksheet protection and resets supported protection flags.
protection() → WorksheetProtectionGets worksheet protection settings.
get_protection() → WorksheetProtectionGets worksheet protection settings.
protection_mut() → &mut WorksheetProtectionGets the associated value.
get_protection_mut() → &mut WorksheetProtectionGets the associated value.
is_protected() → boolReturns whether protected.
set_column_width(column: u32, width: f64) → Result<(), CellsError>Sets the associated value.
clear_column_width(column: u32)Clears column width.
set_column_hidden(column: u32, hidden: bool)Sets the associated value.
hide_column(column: u32)Hides the specified column.
show_column(column: u32)Shows the specified column.
column_properties(column: u32) → Option<ColumnProperties>Gets stored column properties for the specified column, if present.
set_row_height(row: u32, height: f64) → Result<(), CellsError>Sets the associated value.
clear_row_height(row: u32)Clears row height.
set_row_hidden(row: u32, hidden: bool)Sets the associated value.
hide_row(row: u32)Hides the specified row.
show_row(row: u32)Shows the specified row.
row_properties(row: u32) → Option<RowProperties>Gets stored row properties for the specified row, if present.

See Also

 English