Enum InterpolationType

  • InterpolationType is used to define how values are calculated for gradient conditions in conditional formatting rules.

  • Options include using specific numbers, percentages, percentiles, or inferred minimum/maximum values as interpolation points.

  • Access enum properties using the format: SpreadsheetApp.InterpolationType.PROPERTY, replacing PROPERTY with desired value like NUMBER or PERCENT.

InterpolationType

An enumeration representing the interpolation options for calculating a value to be used in a GradientCondition in a ConditionalFormatRule.

To call an enum, you call its parent class, name, and property. For example, SpreadsheetApp.InterpolationType.NUMBER.

Properties

PropertyTypeDescription
NUMBEREnumUse the number as as specific interpolation point for a gradient condition.
PERCENTEnumUse the number as a percentage interpolation point for a gradient condition.
PERCENTILEEnumUse the number as a percentile interpolation point for a gradient condition.
MINEnumInfer the minimum number as a specific interpolation point for a gradient condition.
MAXEnumInfer the maximum number as a specific interpolation point for a gradient condition.