Worksheet

概述

Worksheet 是 Aspose.Cells Rust 的 FOSS 中的结构体。继承自:Debug、Clone、PartialEq。

封装单个工作表及其支持的 v0.1 工作表特性。

此结构体为 Rust 程序中的 Worksheet 对象声明了 93 个方法。可用的方法包括:auto_filter、cells、charts、clear_column_width、clear_row_height、column_properties、columns、comments、conditional_formattings、freeze_pane、freeze_panes、get_auto_filter,以及另外 81 个方法。公共成员在安装 Aspose.Cells FOSS for Rust 包后,可供任何 Rust 应用访问。

方法

签名描述
name() → &str获取工作表名称。
get_name() → &str获取工作表名称。
set_name(name: impl Into<String>) → Result<(), CellsError>设置工作表名称。
set_name_or_cells_exception(name: impl Into<String>) → Result<(), CellsException>设置关联的值。
visibility_type() → VisibilityType获取工作表的可见性状态。
get_visibility_type() → VisibilityType获取工作表的可见性状态。
set_visibility_type(value: VisibilityType)设置工作表的可见状态。
tab_color() → Color获取工作表选项卡颜色。
get_tab_color() → Color获取工作表选项卡颜色。
set_tab_color(value: Color)设置工作表选项卡颜色。
show_gridlines() → bool获取工作表视图中是否显示网格线。
get_show_gridlines() → bool获取工作表视图中是否显示网格线。
set_show_gridlines(value: bool)设置工作表视图中是否显示网格线。
show_row_column_headers() → bool获取工作表视图中是否显示行和列标题。
get_show_row_column_headers() → bool获取工作表视图中是否显示行和列标题。
set_show_row_column_headers(value: bool)设置工作表视图中是否显示行和列标题。
show_zeros() → bool获取工作表视图中是否显示零值。
get_show_zeros() → bool获取工作表视图中是否显示零值。
set_show_zeros(value: bool)设置工作表视图中是否显示零值。
right_to_left() → bool获取工作表视图是否从右到左。
get_right_to_left() → bool获取工作表视图是否为从右到左。
set_right_to_left(value: bool)设置工作表视图是否从右到左。
zoom() → i32获取工作表的缩放百分比。
get_zoom() → i32获取工作表的缩放百分比。
set_zoom(value: i32) → Result<(), CellsError>设置工作表的缩放百分比。
set_zoom_or_cells_exception(value: i32) → Result<(), CellsException>设置关联的值。
set_cell_value(row: u32, column: u32, value: CellValue)设置关联的值。
get_cell_value(row: u32, column: u32) → Option<&CellValue>获取关联的值。
set_cell_string(row: u32, column: u32, value: impl Into<String>)设置关联的值。
set_cell_datetime(row: u32, column: u32, value: DateTime<Utc>)设置关联的值。
set_cell_formula(row: u32, column: u32, value: impl Into<String>)设置关联的值。
set_cell_formula_with_cached_value(row: u32, column: u32, formula: impl Into<String>, cached_value: CellValue)设置关联的值。
get_formula_cached_value(row: u32, column: u32) → Option<&CellValue>获取关联的值。
set_cell_style(row: u32, column: u32, style: CellStyle)设置关联的值。
get_cell_style(row: u32, column: u32) → Option<&CellStyle>获取关联的值。
set_cell_border(row: u32, column: u32, border: Border)设置关联的值。
get_cell_border(row: u32, column: u32) → Option<&Border>获取关联的值。
cells() → Cells<'_>获取工作表的单元格网格外观。
get_cells() → Cells<'_>获取工作表的 cell grid facade。
get_cells_mut() → CellsMut<'_>获取关联的值。
page_setup() → &PageSetup获取工作表的页面设置。
get_page_setup() → &PageSetup获取工作表的页面设置。
get_page_setup_mut() → &mut PageSetup获取关联的值。
auto_filter() → AutoFilter<'_>获取工作表的自动筛选设置。
get_auto_filter() → AutoFilter<'_>获取工作表的自动筛选设置。
hyperlinks() → HyperlinkCollection<'_>获取工作表的超链接集合。
get_hyperlinks() → HyperlinkCollection<'_>获取工作表超链接集合。
comments() → CommentCollection<'_>获取此工作表上的注释(旧版备注)集合。
get_comments() → CommentCollection<'_>获取此工作表上的注释(旧版备注)集合。
pictures() → PictureCollection<'_>获取此工作表上的图片集合。
get_pictures() → PictureCollection<'_>获取此工作表上的图片集合。
shapes() → ShapeCollection<'_>获取此工作表上的绘图对象(形状)集合。
get_shapes() → ShapeCollection<'_>获取此工作表上的绘图对象(形状)集合。
charts() → ChartCollection<'_>获取此工作表上的图表集合。
get_charts() → ChartCollection<'_>获取此工作表上的图表集合。
list_objects() → ListObjectCollection<'_>获取此工作表上的 Excel 表集合。
get_list_objects() → ListObjectCollection<'_>获取此工作表上 Excel 表的集合。
sparkline_groups() → SparklineGroupCollection<'_>获取关联的值。
get_sparkline_groups() → SparklineGroupCollection<'_>获取关联的值。
validations() → ValidationCollection<'_>获取工作表的数据验证集合。
get_validations() → ValidationCollection<'_>获取工作表的数据验证集合。
conditional_formattings() → ConditionalFormattingCollection<'_>获取工作表的条件格式集合。
get_conditional_formattings() → ConditionalFormattingCollection<'_>获取工作表的条件格式集合。
rows() → Rows<'_>获取关联的值。
get_rows() → Rows<'_>获取关联的值。
get_rows_mut() → RowsMut<'_>获取关联的值。
columns() → Columns<'_>获取关联的值。
get_columns() → Columns<'_>获取关联的值。
get_columns_mut() → ColumnsMut<'_>获取关联的值。
freeze_panes(row_split: u32, column_split: u32)获取当前的冻结窗格设置(如果有的话)。
unfreeze_panes()从工作表视图中移除所有冻结的窗格。
freeze_pane() → Option<FreezePane>获取关联的值。
get_freeze_pane() → Option<FreezePane>获取关联的值。
has_freeze_panes() → bool返回是否冻结窗格。
protect()使用当前的保护设置将工作表标记为受保护。
unprotect()清除工作表保护并重置支持的保护标志。
protection() → WorksheetProtection获取工作表保护设置。
get_protection() → WorksheetProtection获取工作表保护设置。
protection_mut() → &mut WorksheetProtection获取关联的值。
get_protection_mut() → &mut WorksheetProtection获取关联的值。
is_protected() → bool返回是否受保护。
set_column_width(column: u32, width: f64) → Result<(), CellsError>设置关联的值。
clear_column_width(column: u32)清除列宽。
set_column_hidden(column: u32, hidden: bool)设置关联值。
hide_column(column: u32)隐藏指定的列。
show_column(column: u32)显示指定的列。
column_properties(column: u32) → Option<ColumnProperties>获取指定列的已存储列属性(如果存在)。
set_row_height(row: u32, height: f64) → Result<(), CellsError>设置关联的值。
clear_row_height(row: u32)清除行高。
set_row_hidden(row: u32, hidden: bool)设置关联的值。
hide_row(row: u32)隐藏指定的行。
show_row(row: u32)显示指定的行。
row_properties(row: u32) → Option<RowProperties>获取指定行的已存储行属性(如果存在)。

另请参阅

 中文