FormatConditionCollection
Overview
FormatConditionCollection is a class in Aspose.Cells FOSS for C++.
Represents a collection of format condition objects.
Methods
| Signature | Description |
|---|---|
GetCount() → int | Gets the number of items. |
GetRangeCount() → int | Gets the range count. |
Add(area: CellArea, type: FormatConditionType, operatorType: OperatorType, formula1: std::string_view, formula2: std::string_view) → int | Adds the specified item. The area. The type. The operator type. The formula1. The formula2. The zero-based index of the added item. |
AddCondition(type: FormatConditionType) → int | Adds the specified condition. The type. The zero-based index of the added item. |
AddCondition(type: FormatConditionType, operatorType: OperatorType, formula1: std::string_view, formula2: std::string_view) → int | Adds the specified condition. The type. The zero-based index of the added item. |
AddArea(area: CellArea) | Adds the specified area. The area. |
GetCellArea(index: int) → CellArea | Gets the cell area at the specified index. The zero-based index. The cell area. |
RemoveArea(index: int) | Removes the area at the specified index. The zero-based index. |
RemoveArea(startRow: int, startColumn: int, totalRows: int, totalColumns: int) | Removes the area at the specified index. The zero-based index. |
RemoveArea(area: CellArea) | Removes the area at the specified index. The zero-based index. |
RemoveCondition(index: int) | Removes the condition at the specified index. The zero-based index. |
RemoveCondition(owner: std::vector<Core::ConditionalFormattingModel>, collection: Core::ConditionalFormattingModel, model: Core::FormatConditionModel) | Removes the condition at the specified index. The zero-based index. |
AreasOverlap(left: CellArea, right: CellArea) → bool | Determines whether the specified areas overlap. The left area. The right area. true if the areas overlap; otherwise, false. |
SortAreas(areas: std::vector<CellArea>) | Sorts the specified areas. The areas to sort. |
CompareAreas(left: CellArea, right: CellArea) → int | Compares two areas for sorting. The left area. The right area. A negative value if left is less than right, zero if equal, positive if greater. |