Collection class for objects which derive from [[ConditionBase]].
Constructors
Section titled "Constructors"ConditionalFormatCollection
new ConditionalFormatCollection(a: Worksheet): ConditionalFormatCollection Returns ConditionalFormatCollection
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"count
Section titled "count"Returns the total number of items in the collection.
get count(): number Returns number
Methods
Section titled "Methods"addAverageCondition
Section titled "addAverageCondition"Adds a new [[AverageConditionalFormat]] instance to this collection.
addAverageCondition(regionAddress: string, aboveBelow: FormatConditionAboveBelow): AverageConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- aboveBelow:
FormatConditionAboveBelowA [[FormatConditionAboveBelow]] value which defines the initial value of the [[AverageConditionalFormat.aboveBelow]] property. This parameter is optional and defaults to AboveAverage.
Returns AverageConditionalFormat
addBlanksCondition
Section titled "addBlanksCondition"Adds a new [[BlanksConditionalFormat]] instance to this collection.
addBlanksCondition(regionAddress: string): BlanksConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns BlanksConditionalFormat
addColorScaleCondition
Section titled "addColorScaleCondition"Adds a new [[ColorScaleConditionalFormat]] instance to this collection.
addColorScaleCondition(regionAddress: string, colorScaleType: ColorScaleType): ColorScaleConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- colorScaleType:
ColorScaleTypeA [[ColorScaleType]] value which determines whether to add a 2-color or 3-color scale.
Returns ColorScaleConditionalFormat
addDataBarCondition
Section titled "addDataBarCondition"Adds a new [[DataBarConditionalFormat]] instance to this collection.
addDataBarCondition(regionAddress: string): DataBarConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns DataBarConditionalFormat
addDateTimeCondition
Section titled "addDateTimeCondition"Adds a new [[DateTimeConditionalFormat]] instance to this collection.
addDateTimeCondition(regionAddress: string, dateOperator: FormatConditionTimePeriod): DateTimeConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- dateOperator:
FormatConditionTimePeriodA [[FormatConditionTimePeriod]] which defines the time period against which cell date values are evaluated. This parameter is optional and defaults to Today.
Returns DateTimeConditionalFormat
addDuplicateCondition
Section titled "addDuplicateCondition"Adds a new [[DuplicateConditionalFormat]] instance to this collection, configured as a duplicate value condition.
addDuplicateCondition(regionAddress: string): DuplicateConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns DuplicateConditionalFormat
addErrorsCondition
Section titled "addErrorsCondition"Adds a new [[ErrorsConditionalFormat]] instance to this collection.
addErrorsCondition(regionAddress: string): ErrorsConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns ErrorsConditionalFormat
addFormulaCondition
Section titled "addFormulaCondition"Adds a new [[FormulaConditionalFormat]] instance to this collection.
addFormulaCondition(regionAddress: string, formula: string, cellReferenceMode: CellReferenceMode): FormulaConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- formula:
stringThe formula which is used to determine whether a cell value meets the condition criteria.
- cellReferenceMode:
CellReferenceModeA [[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 FormulaConditionalFormat
addIconSetCondition
Section titled "addIconSetCondition"Adds a new [[IconSetConditionalFormat]] instance to this collection.
addIconSetCondition(regionAddress: string, iconSet: FormatConditionIconSet): IconSetConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- iconSet:
FormatConditionIconSetA [[FormatConditionIconSet]] value which identifies the icon set to use. This parameter is optional and defaults to IconSet3TrafficLights1.
Returns IconSetConditionalFormat
addNoBlanksCondition
Section titled "addNoBlanksCondition"Adds a new [[NoBlanksConditionalFormat]] instance to this collection.
addNoBlanksCondition(regionAddress: string): NoBlanksConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns NoBlanksConditionalFormat
addNoErrorsCondition
Section titled "addNoErrorsCondition"Adds a new [[NoErrorsConditionalFormat]] instance to this collection.
addNoErrorsCondition(regionAddress: string): NoErrorsConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns NoErrorsConditionalFormat
addOperatorCondition
Section titled "addOperatorCondition"Adds a new [[OperatorConditionalFormat]] instance to this collection.
addOperatorCondition(regionAddress: string, conditionOperator: FormatConditionOperator): OperatorConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- conditionOperator:
FormatConditionOperatorA [[FormatConditionOperator]] value which defines the initial value of the [[OperatorConditionalFormat.operator]] property. This parameter is optional and defaults to Equal.
Returns OperatorConditionalFormat
addRankCondition
Section titled "addRankCondition"Adds a new [[RankConditionalFormat]] instance to this collection.
addRankCondition(regionAddress: string, topBottom: FormatConditionTopBottom, rank: number): RankConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- topBottom:
FormatConditionTopBottomA [[FormatConditionTopBottom]] value which determines whether the top or bottom of the ranking is evaluated. This parameter is optional and defaults to Top.
- rank:
numberThe numeric, percentage, or percentile ranking. This parameter is optional and defaults to 10.
Returns RankConditionalFormat
addTextCondition
Section titled "addTextCondition"Adds a new [[TextOperatorConditionalFormat]] instance to this collection.
addTextCondition(regionAddress: string, text: string, textOperator: FormatConditionTextOperator): TextOperatorConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
- text:
stringA string which determines the string against which cell text values are evaluated. This parameter is optional and defaults to null.
- textOperator:
FormatConditionTextOperatorA [[FormatConditionTextOperator]] value which determines the manner in which cell values are compared to the 'text' value. This parameter is optional and defaults to BeginsWith.
Returns TextOperatorConditionalFormat
addUniqueCondition
Section titled "addUniqueCondition"Adds a new [[UniqueConditionalFormat]] instance to this collection, configured as a unique value condition.
addUniqueCondition(regionAddress: string): UniqueConditionalFormat Parameters
- regionAddress:
stringA string identifying the region to which this conditional format applies.
Returns UniqueConditionalFormat
clear
Section titled "clear"Removes all items from the collection.
clear(): void Returns void
contains
Section titled "contains"Returns true if the collection contains the condition
contains(condition: ConditionBase): boolean Parameters
- condition:
ConditionBaseThe condition
Returns boolean
getEnumerator
Section titled "getEnumerator"getEnumerator(): any Returns any
getEnumeratorObject
Section titled "getEnumeratorObject"getEnumeratorObject(): any Returns any
indexOf
Section titled "indexOf"Gets the index of the item in the collection
indexOf(condition: ConditionBase): number Parameters
- condition:
ConditionBase
Returns number
Indexer
item(a: number): ConditionBase Parameters
- a:
number
Returns ConditionBase
remove
Section titled "remove"Removes an item from the collection
remove(condition: ConditionBase): boolean Parameters
- condition:
ConditionBase
Returns boolean
removeAt
Section titled "removeAt"Removes an item from the collection at a specifoed index
removeAt(index: number): void Parameters
- index:
numberThe zero based index in the collection
Returns void
staticInit
Section titled "staticInit"staticInit(): void