FormatConditionCollection

FormatConditionCollection

Overview

FormatConditionCollection is a class in Aspose.Cells FOSS for C++.

Represents a collection of format condition objects.

Methods

SignatureDescription
GetCount()intGets the number of items.
GetRangeCount()intGets the range count.
Add(area: CellArea, type: FormatConditionType, operatorType: OperatorType, formula1: std::string_view, formula2: std::string_view)intAdds 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)intAdds 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)intAdds 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)CellAreaGets 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)boolDetermines 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)intCompares 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.

See Also