FormatConditionCollection
概述
FormatConditionCollection 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。
表示一组格式条件对象。
此结构体为 Rust 程序中的 FormatConditionCollection 对象声明了 11 个方法。可用的方法包括:add、add_area、add_condition、add_condition_with_details、count、get、get_cell_area、range_count、remove_area、remove_area_by_cells、remove_condition。在安装 Aspose.Cells 为 Rust 提供的 FOSS 包后,公共成员可供任何 Rust 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
count() → usize | 获取项的数量。 |
range_count() → usize | 获取此条件格式集合覆盖的单元格范围数量。 |
get(index: usize) → Option<FormatCondition<'_>> | 获取集合中的项。 |
add(area: CellArea, condition_type: FormatConditionType, operator_type: OperatorType, formula1: impl Into<String>, formula2: impl Into<String>) → Result<usize, CellsError> | 添加指定的项目。 |
add_condition(condition_type: FormatConditionType) → usize | 添加项目。 |
add_condition_with_details(condition_type: FormatConditionType, operator_type: OperatorType, formula1: impl Into<String>, formula2: impl Into<String>) → usize | 添加一个项目。 |
add_area(area: CellArea) → Result<(), CellsError> | 添加一个项目。 |
get_cell_area(index: usize) → Result<CellArea, CellsError> | 获取关联的值。 |
remove_area(index: usize) → Result<(), CellsError> | 移除一个项目。 |
remove_area_by_cells(start_row: i32, start_column: i32, total_rows: i32, total_columns: i32) → Result<(), CellsError> | 删除一个项目。 |
remove_condition(index: usize) → Result<(), CellsError> | 删除一个项目。 |