Aspose::Cells::FormatConditionCollection::Add method

FormatConditionCollection::Add(const CellArea&, FormatConditionType, OperatorType, const U16String&, const U16String&) method

Adds a formatting condition and effected cell rang to the FormatConditions The FormatConditions can contain up to three conditional formats. References to the other sheets are not allowed in the formulas of conditional formatting.

Vector<int32_t> Aspose::Cells::FormatConditionCollection::Add(const CellArea &cellArea, FormatConditionType type, OperatorType operatorType, const U16String &formula1, const U16String &formula2)
ParameterTypeDescription
cellAreaconst CellArea&Conditional formatted cell range.
typeFormatConditionTypeType of conditional formatting.It could be one of the members of FormatConditionType.
operatorTypeOperatorTypeComparison operator.It could be one of the members of OperatorType.
formula1const U16String&The value or expression associated with conditional formatting.
formula2const U16String&The value or expression associated with conditional formatting

ReturnValue

[0]:Formatting condition object index;[1] Effected cell rang index.

Remarks

OperatorType

See Also

FormatConditionCollection::Add(const CellArea&, FormatConditionType, OperatorType, const char16_t*, const char16_t*) method

Adds a formatting condition and effected cell rang to the FormatConditions The FormatConditions can contain up to three conditional formats. References to the other sheets are not allowed in the formulas of conditional formatting.

Vector<int32_t> Aspose::Cells::FormatConditionCollection::Add(const CellArea &cellArea, FormatConditionType type, OperatorType operatorType, const char16_t *formula1, const char16_t *formula2)
ParameterTypeDescription
cellAreaconst CellArea&Conditional formatted cell range.
typeFormatConditionTypeType of conditional formatting.It could be one of the members of FormatConditionType.
operatorTypeOperatorTypeComparison operator.It could be one of the members of OperatorType.
formula1const char16_t*The value or expression associated with conditional formatting.
formula2const char16_t*The value or expression associated with conditional formatting

ReturnValue

[0]:Formatting condition object index;[1] Effected cell rang index.

Remarks

OperatorType

See Also