Exposes properties which define the value and its unit of measure for a conditional format threshold.

ConditionValue

new ConditionValue(a: ThresholdConditionBase, b: object, c: object): ConditionValue

Returns ConditionValue

$t: Type

Returns the formula which determines whether cell values meet the criteria defined by the associated condition.

get formula(): Formula

Returns Formula

Returns the numeric value for this instance.

get value(): number

Returns number

Returns a [[FormatConditionValueType]] value which specifies the manner in which the threshold values for this instance are determined.

get valueType(): FormatConditionValueType

Returns FormatConditionValueType

Assigns the specified formula to the [[formula]] property, and assigns a value of Formula to the [[valueType]] property.

setFormula(formula: string, cellReferenceMode: CellReferenceMode, valueType: FormatConditionValueType): void

Parameters

  • formula: string

    The string representation of the [[formula]] to be assigned to the [[value]] property.

  • cellReferenceMode: CellReferenceMode

    A [[CellReferenceMode]] value which specifies whether the 'formula' parameter should be interpreted as an A1 or R1C1 expression. This parameter is optional and defaults to null, in which case the [[Workbook.cellReferenceMode]] property is used.

  • valueType: FormatConditionValueType

    A [[FormatConditionValueType]] value which specifies the manner in which the value returned from the formula is interpreted. This parameter is optional and defaults to 'Formula'.

Returns void

Sets the [[valueType]] property to the specified [[FormatConditionValueType]] value.

setValue(valueType: FormatConditionValueType): void

Parameters

Returns void

Returns the string representation of this instance.

toString(): string

Returns string