Exposes properties which control the visual attributes of a [[WorksheetCell]] based on whether a cell's value is within the top or bottom rank of values across the associated range.

RankConditionalFormat

new RankConditionalFormat(a: number): RankConditionalFormat

Returns RankConditionalFormat

$t: Type
isPercent: boolean

Inherited from: ConditionalFormatBase

priority: number
rank: number

Inherited from: ConditionalFormatBase

stopIfTrue: boolean
topBottom: FormatConditionTopBottom

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 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 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): void

Parameters

  • regionAddress: string

    A string with one or more comma separated region address

  • cellReferenceMode: CellReferenceMode

    An optional cell reference mode

Returns void

Inherited from: ConditionalFormatBase

staticInit(): void

Returns void