跳到主要内容

ApiIconSetCondition

Represents the ApiIconSetCondition class.

Properties

NameTypeDescription
FormulastringReturns the formula associated with the icon set condition.
IconCriteriaApiIconCriterion[]Returns a collection of icon criteria that represent the threshold values and icons for the icon set conditional formatting rule.
IconSetXlIconSetReturns or sets the icon set type used in the conditional formatting rule.
PercentileValuesbooleanReturns or sets whether the thresholds for the icon set conditional format are determined by using percentiles.
ReverseOrderbooleanReturns or sets whether the icon order in the icon set rule is reversed.
ShowIconOnlybooleanReturns or sets whether to display only icons in the icon set rule (without cell values).
TypeXlFormatConditionTypeReturns the type of the icon set conditional formatting rule.

Methods

MethodReturnsDescription
DeleteNoneDeletes the current format condition.
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. Returns 'No Fill' when the background color of the format condition is null.
GetFontApiFont | nullReturns the font applied by the current format condition.
GetFormulastringReturns the formula associated with the icon set condition.
GetFormula1stringReturns the first formula used by the current conditional formatting rule.
GetFormula2stringReturns the second formula used by the current conditional formatting rule.
GetIconCriteriaApiIconCriterion[] | nullReturns a collection of icon criteria that represent the threshold values and icons for the icon set conditional formatting rule.
GetIconSetXlIconSet | nullReturns the icon set type used in the conditional formatting rule.
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.
GetPercentileValuesbooleanReturns whether the thresholds for the icon set conditional format are determined by using percentiles.
GetPrioritynumberReturns the priority value of the conditional formatting rule.
GetReverseOrderboolean | nullReturns whether the icon order in the icon set rule is reversed.
GetScopeTypeXlPivotConditionScopeReturns the scope type of the conditional formatting rule.
GetShowIconOnlyboolean | nullReturns whether only icons are displayed in the icon set rule (without cell values).
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 icon set 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.
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. Sets 'No Fill' when previously created color object is null.
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.
SetIconSetbooleanSets the icon set type for the conditional formatting rule.
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 applied to a cell when the conditional formatting rule evaluates to true.
SetPercentileValuesbooleanSpecifies whether the thresholds for the icon set conditional format are determined by using percentiles.
SetPriorityNoneSets the priority value of the conditional formatting rule.
SetReverseOrderbooleanSpecifies whether the icon order in the icon set rule is reversed.
SetScopeTypeNoneSets the scope type for the conditional formatting rule.
SetShowIconOnlybooleanSpecifies whether to display only icons in the icon set rule (without cell values).
SetTextNoneSets the text value used in text-based conditional formatting rules.
SetTextOperatorNoneSets the text operator for text-based conditional formatting rules.