FormatConditionCollection
FormatConditionCollection
Overview
FormatConditionCollection 是 NET 的 Aspose.Cells 中的一个类.
FormatConditionCollection.Add adds a conditional format for the specified area with type, operator and formulas.
Description
FormatConditionCollection 是一个在 .NET 的 Aspose.Cells FOSS 库中的类,它暴露了 8 种方法和 2 个属性用于编程使用.
课程还提供了 Count 集合中的条件的总数), RangeCount 特性 (得到集合中不同细胞区域的数量).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | 得到集合中条件的总数. |
RangeCount | int | Read | 得到集合中不同细胞区域的数量. |
Methods
| Signature | Description |
|---|---|
Add(area: CellArea, type: FormatConditionType, operatorType: OperatorType, formula1: string, formula2: string) | 添加指定区域的条件格式,包含类型,操作符和公式. |
AddCondition(type: FormatConditionType) | 使用默认运算符和空公式添加指定类型的新条件 |
AddCondition(type: FormatConditionType, operatorType: OperatorType, formula1: string, formula2: string) | |
AddArea(area: CellArea) | 将指定的 CellArea 添加到集合范围列表中. |
GetCellArea(index: int) | 在给定的索引中返回 CellArea |
RemoveArea(index: int) | 删除指定的零基索引的单元格面积. |
RemoveArea(startRow: int, startColumn: int, totalRows: int, totalColumns: int) | |
RemoveCondition(index: int) | 在给定的索引中删除条件 |