跳到主要内容

ApiDatabar

Represents the ApiDatabar class.

Properties

NameTypeDescription
AxisPositionXlDataBarAxisPositionReturns or sets the axis position of the data bar conditional formatting rule.
BarFillTypeXlDataBarFillTypeReturns or sets the bar fill type of the data bar.
DirectionXlReadingOrderReturns or sets the direction of the data bar.
FormulastringReturns the formula of the data bar.
MaxPointobjectReturns the maximum value condition of the data bar.
MinPointobjectReturns the minimum value condition of the data bar.
NegativeBarColorApiColorReturns or sets the negative bar color of the data bar.
NegativeBorderColorApiColorReturns or sets the negative bar border color of the data bar.
PercentMaxnumberReturns or sets the percent maximum value of the data bar.
PercentMinnumberReturns or sets the percent minimum value of the data bar.
ShowValuebooleanReturns or sets whether the data bar shows or hides the cell value.
TypeXlFormatConditionTypeReturns the type of the data bar conditional formatting rule.

Methods

MethodReturnsDescription
DeleteNoneDeletes the current format condition.
GetAppliesToApiRange | nullReturns the range of cells to which the current conditional formatting rule applies.
GetAxisColorApiColor | nullReturns the axis color of the data bar conditional formatting rule.
GetAxisPositionXlDataBarAxisPositionReturns the axis position of the data bar conditional formatting rule.
GetBarBorderColorApiColor | nullReturns the bar border color of the data bar.
GetBarColorApiColor | nullReturns the bar color of the data bar.
GetBarFillTypeXlDataBarFillTypeReturns the bar fill type of the data bar.
GetDateOperatorXlTimePeriods | nullReturns the date operator for time period conditions.
GetDirectionXlReadingOrderReturns the direction of the data bar.
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 of the data bar.
GetFormula1stringReturns the first formula used by the current conditional formatting rule.
GetFormula2stringReturns the second formula used by the current conditional formatting rule.
GetMaxPointTypeXlConditionValueTypes | nullReturns the type of the maximum value condition for the data bar.
GetMaxPointValuestring | number | nullReturns the value of the maximum value condition for the data bar.
GetMinPointTypeXlConditionValueTypes | nullReturns the type of the minimum value condition for the data bar.
GetMinPointValuestring | number | nullReturns the value of the minimum value condition for the data bar.
GetNegativeBarColorApiColor | nullReturns the negative bar color of the data bar.
GetNegativeBorderColorApiColor | nullReturns the negative bar border color of the data bar.
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.
GetPercentMaxnumberReturns the percent maximum value of the data bar.
GetPercentMinnumberReturns the percent minimum value of the data bar.
GetPrioritynumberReturns the priority value of the conditional formatting rule.
GetScopeTypeXlPivotConditionScopeReturns the scope type of the conditional formatting rule.
GetShowValuebooleanReturns whether the data bar displays the cell value.
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 data bar 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.
SetAxisColorNoneSets the axis color for the data bar conditional formatting rule.
SetAxisPositionNoneSets the axis position for the data bar conditional formatting rule.
SetBarBorderColorNoneSets the bar border color for the data bar.
SetBarColorNoneSets the bar color for the data bar.
SetBarFillTypeNoneSets the bar fill type for the data bar.
SetBordersNoneSets the border style for the conditional formatting rule.
SetDateOperatorNoneSets the date operator for time period conditions.
SetDirectionNoneSets the direction for the data bar.
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.
SetLastPriorityNoneSets the evaluation order for the current conditional formatting rule so it is evaluated after all other rules on the worksheet.
SetMaxPointTypeNoneSets the type for the maximum value condition for the data bar.
SetMaxPointValueNoneSets the value for the maximum value condition for the data bar.
SetMinPointTypeNoneSets the type for the minimum value condition for the data bar.
SetMinPointValueNoneSets the value for the minimum value condition for the data bar.
SetNegativeBarColorNoneSets the negative bar color for the data bar.
SetNegativeBorderColorNoneSets the negative bar border color for the data bar.
SetNumberFormatNoneSets the number format applied to a cell when the conditional formatting rule evaluates to true.
SetPercentMaxNoneSets the percent maximum value for the data bar.
SetPercentMinNoneSets the percent minimum value for the data bar.
SetPriorityNoneSets the priority value of the conditional formatting rule.
SetScopeTypeNoneSets the scope type for the conditional formatting rule.
SetShowValueNoneSpecifies whether the data bar displays the cell value.
SetTextNoneSets the text value used in text-based conditional formatting rules.
SetTextOperatorNoneSets the text operator for text-based conditional formatting rules.