Skip to main content

ApiAboveAverage

Class representing an above average conditional formatting rule.

ApiAboveAverage is a subclass of ApiFormatCondition.

Properties​

NameTypeDescription
AboveBelowbooleanReturns or sets whether the rule is configured to detect values above or below the average.
NumStdDevnumberReturns or sets the number of standard deviations from the average.
TypeXlFormatConditionTypeReturns the type of the above average conditional formatting rule.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeleteNoneDeletes the current format condition.
GetAboveBelowbooleanReturns whether the rule is configured to detect values above or below the average.
GetAppliesToApiRange | nullReturns the range of cells to which the current conditional formatting rule applies.
GetDateOperatorXlTimePeriods | nullReturns the date operator for time period conditions.
GetFillColorApiColor | 'No Fill'Returns the background color for the format condition.
GetFontApiFont | nullReturns the font applied by the current format condition.
GetFormula1stringReturns the first formula used by the current conditional formatting rule.
GetFormula2stringReturns the second formula used by the current conditional formatting rule.
GetNumStdDevnumberReturns the number of standard deviations from the average.
GetNumberFormatstringReturns the number format applied to a cell when the conditional formatting rule evaluates to true.
GetOperatorXlFormatConditionOperatorReturns the format condition operator.
GetPTConditionPTCondition | nullReturns the pivot table condition object.
GetParentApiRangeReturns the parent range object of the current format condition.
GetPrioritynumberReturns the priority value of the conditional formatting rule.
GetScopeTypeXlPivotConditionScopeReturns the scope type of the conditional formatting rule.
GetTextstringReturns the text value used in text-based conditional formatting rules.
GetTextOperatorXlContainsOperator | nullReturns the text operator for text-based conditional formatting rules.
GetTypeXlFormatConditionTypeReturns the type of the above average conditional formatting rule.
ModifyApiFormatCondition | nullModifies the current format condition with the specified parameters.
ModifyAppliesToRangeNoneSets the cell range to which the current conditional formatting rule applies.
SetAboveBelowNoneSets whether the rule targets values above or below the average.
SetBordersNoneSets the border style for the conditional formatting rule.
SetDateOperatorNoneSets the date operator for time period conditions.
SetFillColorNoneSets the background color to the format condition with the previously created color object.
SetFirstPriorityNoneSets the priority value for the current conditional formatting rule to "1" so that it will be evaluated before all other rules on the worksheet.
SetLastPriorityNoneSets the evaluation order for the current conditional formatting rule so it is evaluated after all other rules on the worksheet.
SetNumStdDevNoneSets the number of standard deviations from the average.
SetNumberFormatNoneSets the number format applied to a cell when the conditional formatting rule evaluates to true.
SetPriorityNoneSets the priority value of the conditional formatting rule.
SetScopeTypeNoneSets the scope type for the conditional formatting rule.
SetTextNoneSets the text value used in text-based conditional formatting rules.
SetTextOperatorNoneSets the text operator for text-based conditional formatting rules.