FormatConditionCollection
概述
FormatConditionCollection 是 Aspose.Cells FOSS 中用于 Java 的类。
表示 Excel 中的格式条件集合。
此类提供 9 个方法,用于在 Java 程序中处理 FormatConditionCollection 对象。可用的方法包括:add、addArea、addCondition、get、getCellArea、getCount、getRangeCount、removeArea、removeCondition。在安装了 Aspose.Cells FOSS for Java 包后,所有导出成员均可供任何 Java 应用程序访问。属性:count、rangeCount。
描述
FormatConditionCollection 是 Aspose.Cells FOSS 库中用于 Java 的类,提供 11 个方法和 2 个属性供编程使用。
核心功能包括:添加区域;删除区域;删除条件。这些操作使开发者能够将 formatconditioncollection 功能直接集成到 Java 应用程序中。
该类还提供 count 属性(返回计数),以及 rangeCount 属性(返回范围计数)。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
count | int | 读取 | 返回计数。 |
rangeCount | int | 读取 | 返回范围计数。 |
方法
| 签名 | 描述 |
|---|---|
getCount() → int | 返回计数。 |
getRangeCount() → int | 返回范围计数。 |
get(index: int) → FormatCondition | 返回请求的项。 |
add(area: CellArea, type: FormatConditionType, operatorType: OperatorType, formula1: String, formula2: String) → int | 向当前集合中添加新项。 |
addCondition(type: FormatConditionType) → int | 添加条件。 |
addCondition(type: FormatConditionType, operatorType: OperatorType, formula1: String, formula2: String) → int | 添加条件。 |
addArea(area: CellArea) | 添加区域。 |
getCellArea(index: int) → CellArea | 处理获取单元格面积。 |
removeArea(index: int) | 移除区域。 |
removeArea(startRow: int, startColumn: int, totalRows: int, totalColumns: int) | 移除区域。 |
removeCondition(index: int) | 移除条件。 |