FormatConditionCollection

FormatConditionCollection

Overview

FormatConditionCollection is a struct in Aspose.Cells FOSS for Rust.

Represents a collection of format condition objects.

This struct provides 11 methods for working with FormatConditionCollection objects in Rust programs. Available methods include: add, add_area, add_condition, add_condition_with_details, count, get, get_cell_area, range_count, remove_area, remove_area_by_cells, remove_condition. All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.

Methods

SignatureDescription
count()usizeGets the number of items.
range_count()usizeGets the number of cell ranges covered by this conditional-formatting collection.
get(index: usize)Option<FormatCondition<'_>>Gets the item from the collection.
add(area: CellArea, condition_type: FormatConditionType, operator_type: OperatorType, formula1: impl Into<String>, formula2: impl Into<String>)Result<usize, CellsError>Adds the specified item.
add_condition(condition_type: FormatConditionType)usizeAdds an item.
add_condition_with_details(condition_type: FormatConditionType, operator_type: OperatorType, formula1: impl Into<String>, formula2: impl Into<String>)usizeAdds an item.
add_area(area: CellArea)Result<(), CellsError>Adds an item.
get_cell_area(index: usize)Result<CellArea, CellsError>Gets the associated value.
remove_area(index: usize)Result<(), CellsError>Removes an item.
remove_area_by_cells(start_row: i32, start_column: i32, total_rows: i32, total_columns: i32)Result<(), CellsError>Removes an item.
remove_condition(index: usize)Result<(), CellsError>Removes an item.

See Also