public interface IFormatCondition
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this conditional format.
|
void |
fromJson(java.lang.String json)
Generates the conditional format from the json string.
|
IRange |
getAppliesTo()
Returns the
IRange object that specifies the cell range to which the
formatting rule is applied. |
IBorders |
getBorders()
Returns an instance of
IBorders which represents the borders of this
conditional format. |
TimePeriods |
getDateOperator()
Specifies the
TimePeriods Date operator used in the format condition. |
IFont |
getFont()
Returns an instance of
IFont which represents the font of this
conditional format. |
java.lang.Object |
getFormula1()
Returns the first formula of this conditional format.
|
java.lang.Object |
getFormula2()
Returns the second formula of this conditional format.
|
IInterior |
getInterior()
Returns an instance of
IInterior which represents the background
color of this conditional format. |
java.lang.String |
getNumberFormat()
Returns the number format applied to a cell if the conditional formatting
rule evaluates to True (read or write object).
|
FormatConditionOperator |
getOperator()
Returns the operator of this conditional format.
|
int |
getPriority()
Returns the priority value of the conditional formatting rule.
|
boolean |
getStopIfTrue()
Returns a Boolean value that determines if additional formatting rules on the
cell should be evaluated if the current rule evaluates to True.
|
java.lang.String |
getText()
Returns a String value specifying the text used by the conditional formatting
rule.
|
ContainsOperator |
getTextOperator()
Returns one of the constants of the
ContainsOperator enumeration,
specifying the text search performed by the conditional formatting rule. |
FormatConditionType |
getType()
Returns the type of this conditional format.
|
void |
setAppliesTo(IRange value)
Sets the
IRange object that specifies the cell range to which the
formatting rule is applied. |
void |
setDateOperator(TimePeriods value)
Specifies the
TimePeriods Date operator used in the format condition. |
void |
setFirstPriority()
Sets the priority value for this conditional formatting rule to "1" so that
it will be evaluated before all other rules on the worksheet.
|
void |
setFormula1(java.lang.Object value)
Sets the first formula of this conditional format.
|
void |
setFormula2(java.lang.Object value)
Sets the second formula of this conditional format.
|
void |
setLastPriority()
Sets the evaluation order for this conditional formatting rule so it is
evaluated after all other rules on the worksheet.
|
void |
setNumberFormat(java.lang.String value)
Sets the number format applied to a cell if the conditional formatting rule
evaluates to True (read or write object).
|
void |
setOperator(FormatConditionOperator value)
Sets the operator of this conditional format.
|
void |
setPriority(int value)
Sets the priority value of the conditional formatting rule.
|
void |
setStopIfTrue(boolean value)
Sets a Boolean value that determines if additional formatting rules on the
cell should be evaluated if the current rule evaluates to True.
|
void |
setText(java.lang.String value)
Sets a String value specifying the text used by the conditional formatting
rule.
|
void |
setTextOperator(ContainsOperator value)
Sets one of the constants of the
ContainsOperator enumeration,
specifying the text search performed by the conditional formatting rule. |
java.lang.String |
toJson()
Generates a json string from the conditional format.
|
IRange getAppliesTo()
IRange object that specifies the cell range to which the
formatting rule is applied.void setAppliesTo(IRange value)
IRange object that specifies the cell range to which the
formatting rule is applied.IBorders getBorders()
IBorders which represents the borders of this
conditional format.TimePeriods getDateOperator()
TimePeriods Date operator used in the format condition.void setDateOperator(TimePeriods value)
TimePeriods Date operator used in the format condition.IFont getFont()
IFont which represents the font of this
conditional format.java.lang.Object getFormula1()
void setFormula1(java.lang.Object value)
java.lang.Object getFormula2()
void setFormula2(java.lang.Object value)
IInterior getInterior()
IInterior which represents the background
color of this conditional format.java.lang.String getNumberFormat()
void setNumberFormat(java.lang.String value)
FormatConditionOperator getOperator()
void setOperator(FormatConditionOperator value)
int getPriority()
void setPriority(int value)
When setting the priority, the value must be a positive integer between 1 and the total number of conditional formatting rules on the worksheet. The priority must be a unique value for all rules on the worksheet, so changing the priority for the specified conditional formatting rule may cause the priority value of the other rules on the worksheet to be shifted.
boolean getStopIfTrue()
void setStopIfTrue(boolean value)
java.lang.String getText()
void setText(java.lang.String value)
This property is ignored if the Type property is not set to TextString.
ContainsOperator getTextOperator()
ContainsOperator enumeration,
specifying the text search performed by the conditional formatting rule.void setTextOperator(ContainsOperator value)
ContainsOperator enumeration,
specifying the text search performed by the conditional formatting rule.FormatConditionType getType()
void delete()
void setFirstPriority()
void setLastPriority()
void fromJson(java.lang.String json)
json - the json stringjava.lang.String toJson()