public final class FormulaCondition extends FormatCondition
true
.Modifier and Type | Method and Description |
---|---|
FormatConditionType |
getConditionType()
Gets the
FormatConditionType.FORMULA value. |
String |
getFormula()
Gets the formula used to determine which cells to format (only cells for which the formula result evaluates to
true are formatted). |
CellStyle |
getStyle()
Gets the actual formatting which will be applied to a cell if its value satisfies this
FormulaCondition . |
void |
setFormula(String value)
Sets the formula used to determine which cells to format (only cells for which the formula result evaluates to
true are formatted). |
String |
toString()
Returns a
String that represents this FormulaCondition instance. |
getRule
public FormatConditionType getConditionType()
FormatConditionType.FORMULA
value.getConditionType
in class FormatCondition
FormatConditionType.FORMULA
value.public String getFormula()
true
are formatted).public CellStyle getStyle()
FormulaCondition
.FormulaCondition
.public void setFormula(String value)
true
are formatted).value
- The formula used to determine which cells to format.IllegalArgumentException
- Value is null
or empty string.public String toString()
String
that represents this FormulaCondition
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class FormatCondition
String
that represents this FormulaCondition
instance.© GemBox Ltd. — All rights reserved.