Skip to main content

ApiUniqueValues

Class representing a unique values conditional formatting rule.

ApiUniqueValues is a subclass of ApiFormatCondition.

Properties​

NameTypeDescription
DupeUniqueXlDuplicateValuesReturns or sets the setting that specifies whether to format duplicate or unique values for the unique values conditional formatting rule.
TypeXlFormatConditionTypeReturns the type of the unique values conditional formatting rule.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeleteNoneDeletes the unique values 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.
GetDupeUniqueXlDuplicateValuesReturns the setting that specifies whether to format duplicate or unique values for the unique values conditional formatting rule.
GetFillColorApiColor | nullReturns the fill color for the unique values conditional formatting rule.
GetFontApiFontReturns the font formatting for the unique values 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 unique values 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.
GetPrioritynumberReturns the priority value of the conditional formatting rule.
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.
GetTypeXlFormatConditionTypeReturns the type of the unique values 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.
SetDupeUniqueNoneSets the setting that specifies whether to format duplicate or unique values for the unique values conditional formatting rule.
SetFillColorNoneSets the fill color for the unique values 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 unique values conditional formatting rule.
SetPriorityNoneSets the priority value for the conditional formatting rule.
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.