CellsMut

概述

CellsMut 是 Aspose.Cells 为 Rust 提供的 FOSS 中的 struct。

提供对工作表单元格、行、列和合并范围的访问。

此 struct 为 Rust 程序中的 CellsMut 对象声明了 20 个方法。可用的方法包括:check_cell、check_cell_or_cells_exception、columns、count、get、get_by_index、get_columns、get_count、get_merged_cells、get_or_cells_exception、get_rows、get_style,以及另外 8 个方法。安装 Aspose.Cells FOSS for Rust 包后,公共成员对任何 Rust 应用程序均可访问。

方法

签名描述
get(address: &str) → Result<CellMut<'_>, CellsError>获取集合中的项。
get_or_cells_exception(address: &str) → Result<CellMut<'_>, CellsException>获取关联的值。
item(address: &str) → Result<CellMut<'_>, CellsError>获取集合中的项。
get_by_index(row: u32, column: u32) → CellMut<'_>获取关联的值。
item_by_index(row: u32, column: u32) → CellMut<'_>从集合中获取项。
rows() → RowsMut<'_>获取工作表的行级设置。
get_rows() → RowsMut<'_>获取工作表的行级设置。
columns() → ColumnsMut<'_>获取工作表的列级设置。
get_columns() → ColumnsMut<'_>获取工作表的列级设置。
style() → Style获取工作表单元格范围的默认样式。
get_style() → Style获取工作表单元格范围的默认样式。
set_style(value: Style) → Result<(), CellsError>设置工作表单元格范围的默认样式。
merged_cells() → Vec<CellArea>获取工作表顺序中的当前合并单元格区域。
get_merged_cells() → Vec<CellArea>获取工作表顺序中的当前合并单元格区域。
merge(first_row: i32, first_column: i32, total_rows: i32, total_columns: i32) → Result<(), CellsError>使用零基坐标合并矩形单元格区域。
merge_or_cells_exception(first_row: i32, first_column: i32, total_rows: i32, total_columns: i32) → Result<(), CellsException>合并指定的范围,并在 CellsException 中包装失败。
check_cell(address: &str) → Result<bool, CellsError>返回指定的 A1 样式单元格是否当前存在。
check_cell_or_cells_exception(address: &str) → Result<bool, CellsException>返回指定的 A1 样式单元格是否当前存在,并在 CellsException 中包装失败。
count() → usize获取项目的数量。
get_count() → usize获取项目的数量。

另请参阅

 中文