Package com.grapecity.documents.excel
Interface IAboveAverage
public interface IAboveAverage
Represents an above average visual of a conditional formatting rule. Applies a color or fill to a range or selection to help you see the value of a cell relative to other cells.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes this conditional format.voidGenerates the conditional format from the json string.Returns one of the constants of theAboveBelowenumeration,specifying if the conditional formatting rule looks for cell values above or below the range average or standard deviation.Returns a range object specifying the cell range to which the formatting rule is applied.Returns an instance ofIBorderswhich represents the borders of thisconditional format.getFont()Returns an instance ofIFontwhich represents the font of thisconditional format.Returns an instance ofIInteriorwhich represents the backgroundcolor of this conditional format.Returns the number format applied to a cell if the conditional formatting rule evaluates to true.intReturns the numeric standard deviation for an AboveAverage object.intReturns the priority value of the conditional formatting rule.booleanReturns a boolean value that determines if additional formatting rules on the cell should be evaluated if the current rule evaluates to true.getType()Returns the type of this conditional format.voidsetAboveBelow(AboveBelow value) Sets one of the constants of theAboveBelowenumeration, specifyingif the conditional formatting rule looks for cell values above or below the range average or standard deviation.voidsetAppliesTo(IRange value) Sets a range object specifying the cell range to which the formatting rule is applied.voidSets the priority value for this conditional formatting rule to "1" so that it will be evaluated before all other rules on the worksheet.voidSets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet.voidsetNumberFormat(String value) Sets the number format applied to a cell if the conditional formatting rule evaluates to True.voidsetNumStdDev(int value) Sets the numeric standard deviation for an AboveAverage object.voidsetPriority(int value) Sets the priority value of the conditional formatting rule.voidsetStopIfTrue(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.toJson()Generates a json string from the conditional format.
-
Method Details
-
getAboveBelow
AboveBelow getAboveBelow()Returns one of the constants of theAboveBelowenumeration,specifying if the conditional formatting rule looks for cell values above or below the range average or standard deviation. -
setAboveBelow
Sets one of the constants of theAboveBelowenumeration, specifyingif the conditional formatting rule looks for cell values above or below the range average or standard deviation. -
getAppliesTo
IRange getAppliesTo()Returns a range object specifying the cell range to which the formatting rule is applied. -
setAppliesTo
Sets a range object specifying the cell range to which the formatting rule is applied. -
getBorders
IBorders getBorders()Returns an instance ofIBorderswhich represents the borders of thisconditional format. -
getFont
IFont getFont()Returns an instance ofIFontwhich represents the font of thisconditional format. -
getInterior
IInterior getInterior()Returns an instance ofIInteriorwhich represents the backgroundcolor of this conditional format. -
getNumberFormat
String getNumberFormat()Returns the number format applied to a cell if the conditional formatting rule evaluates to true. -
setNumberFormat
Sets the number format applied to a cell if the conditional formatting rule evaluates to True. -
getNumStdDev
int getNumStdDev()Returns the numeric standard deviation for an AboveAverage object. -
setNumStdDev
void setNumStdDev(int value) Sets the numeric standard deviation for an AboveAverage object. -
getPriority
int getPriority()Returns the priority value of the conditional formatting rule. The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet.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.
-
setPriority
void setPriority(int value) Sets the priority value of the conditional formatting rule. The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet.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.
-
getStopIfTrue
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. -
setStopIfTrue
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. -
getType
FormatConditionType getType()Returns the type of this conditional format. -
delete
void delete()Deletes this conditional format. -
setFirstPriority
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. -
setLastPriority
void setLastPriority()Sets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet. -
fromJson
Generates the conditional format from the json string.- Parameters:
json- the json string.
-
toJson
String toJson()Generates a json string from the conditional format.- Returns:
- the conditional format json string.
-