Skip to main content

ApiTop10

Class representing a top 10 conditional formatting rule.

ApiTop10 is a subclass of ApiFormatCondition.

Properties​

NameTypeDescription
PercentbooleanReturns or sets whether the top 10 ranking is percentage-based.
RanknumberReturns or sets the rank value of the top 10 condition.
TopBottomXlTopBottomReturns or sets the "XlTopBottom" constant indicating whether the ranking is evaluated from the top or bottom.
TypeXlFormatConditionTypeReturns the type of the top 10 conditional formatting rule.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeleteNoneDeletes the top 10 conditional formatting rule.
GetAppliesToApiRangeReturns the range of cells to which the current conditional formatting rule applies.
GetDateOperatorXlTimePeriods | nullReturns the date operator for time period conditions.
GetFillColorApiColor | nullReturns the fill color for the top 10 conditional formatting rule.
GetFontApiFontReturns the font formatting for the top 10 conditional formatting rule.
GetFormula1stringReturns the first formula used by the current conditional formatting rule.
GetFormula2stringReturns the second formula used by the current conditional formatting rule.
GetNumberFormatstringReturns the number format for the top 10 conditional formatting rule.
GetOperatorXlFormatConditionOperatorReturns the format condition operator.
GetPTConditionPTCondition | nullReturns the pivot table condition object.
GetParentApiRangeReturns the parent range object of the current format condition.
GetPercentbooleanReturns whether the top 10 ranking is percentage-based.
GetPrioritynumberReturns the priority value of the conditional formatting rule.
GetRanknumberReturns the rank value for the top 10 condition.
GetScopeTypeXlPivotConditionScopeReturns the scope type of the conditional formatting rule.
GetStopIfTruebooleanReturns whether the editor will stop evaluating additional formatting rules if this rule evaluates to true.
GetTextstringReturns the text value used in text-based conditional formatting rules.
GetTextOperatorXlContainsOperator | nullReturns the text operator for text-based conditional formatting rules.
GetTopBottomXlTopBottomReturns the "XlTopBottom" constant indicating whether the ranking is evaluated from the top or bottom.
GetTypeXlFormatConditionTypeReturns the type of the top 10 conditional formatting rule.
ModifyApiFormatCondition | nullModifies the current format condition with the specified parameters.
ModifyAppliesToRangeNoneModifies the cell range to which the current conditional formatting rule applies.
SetBordersNoneSets the border style for the conditional formatting rule.
SetDateOperatorNoneSets the date operator for time period conditions.
SetFillColorNoneSets the fill color for the top 10 conditional formatting rule.
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.
SetNumberFormatNoneSets the number format for the top 10 conditional formatting rule.
SetPercentNoneSets whether the top 10 ranking is percentage-based.
SetPriorityNoneSets the priority value for the conditional formatting rule.
SetRankNoneSets the rank value for the top 10 condition.
SetScopeTypeNoneSets the scope type for the conditional formatting rule.
SetStopIfTrueNoneSets whether the editor will stop evaluating additional formatting rules if this rule evaluates to true.
SetTextNoneSets the text value used in text-based conditional formatting rules.
SetTextOperatorNoneSets the text operator for text-based conditional formatting rules.
SetTopBottomNoneSets the "XlTopBottom" constant indicating whether the ranking is evaluated from the top or bottom.