Exposes properties which control the visual attributes of a [[WorksheetCell]] based on whether the cell's text value meets the criteria defined by a string and a [[FormatConditionTextOperator]] value.

TextOperatorConditionalFormat

new TextOperatorConditionalFormat(a: number): TextOperatorConditionalFormat

Returns TextOperatorConditionalFormat

Inherited from: ConditionalFormatBase

Returns an [[IWorksheetCellFormat]] interface implementation which represents the format for cells which meet the criteria associated with this condition.

get cellFormat(): IWorksheetCellFormat

Returns IWorksheetCellFormat

Inherited from: ConditionalFormatBase

Returns a [[FormatConditionType]] value which identifies the type of condition for this instance.

get conditionType(): FormatConditionType

Returns FormatConditionType

Inherited from: ConditionalFormatBase

Returns or sets a value which determines the order of evaluation when multiple conditional formatting rules exist.

get priority(): number

Returns number

set priority(a: number): void

Parameters

  • a: number

Returns void

Inherited from: ConditionalFormatBase

Returns the [[WorksheetRegion]] which identifies the cell range with which this condition is associated.

get regions(): ReadOnlyCollection$1<WorksheetRegion>

Returns ReadOnlyCollection$1<WorksheetRegion>

Inherited from: ConditionalFormatBase

Returns or sets a boolean indicating whether additional formatting rules are evaluated if this rule evaluates to true. Applicable only in the case where the containing collection contains more than one element.

get stopIfTrue(): boolean

Returns boolean

set stopIfTrue(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets the string value against which cell text is compared.

get text(): string

Returns string

set text(a: string): void

Parameters

  • a: string

Returns void

Returns the formula which defines the string value against which cell text is compared.

get textFormula(): Formula

Returns Formula

Returns or sets a [[FormatConditionTextOperator]] value which determines the manner in which the cell text is compared to the value of the [[text]] property.

get textOperator(): FormatConditionTextOperator

Returns FormatConditionTextOperator

set textOperator(a: FormatConditionTextOperator): void

Parameters

Returns void

Inherited from: ConditionalFormatBase

Returns a reference to the associated workbook.

get workbook(): Workbook

Returns Workbook

Inherited from: ConditionalFormatBase

Returns a reference to the associated worksheet.

get worksheet(): Worksheet

Returns Worksheet

Inherited from: ConditionalFormatBase

Sets the [[priority]] value for this rule such that it is the first condition to be evaluated. Applicable only in the case where there is more than one element contained within the associated collection.

setFirstPriority(): void

Returns void

Inherited from: ConditionalFormatBase

Sets the [[priority]] value for this rule such that it is the last condition to be evaluated. Applicable only in the case where there is more than one element contained within the associated [[ConditionalFormatCollection]].

setLastPriority(): void

Returns void

Inherited from: ConditionalFormatBase

Replaces the existing regions with new ones

setRegions(regionAddress: string, cellReferenceMode: CellReferenceMode | null): void

Parameters

  • regionAddress: string

    A string with one or more comma separated region address

  • cellReferenceMode: CellReferenceMode | null

    An optional cell reference mode

Returns void

Assigns a [[Formula]] to the [[textFormula]] property.

setTextFormula(formula: string, cellReferenceMode: CellReferenceMode): void

Parameters

  • formula: string

    The string representation of the [[Formula]] to be assigned to the [[textFormula]] 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.

Returns void

Inherited from: ConditionalFormatBase

staticInit(): void

Returns void