Base implementation of

See

ISheetStyle

TODO - defaultFontSize move to theme?

Implements

Constructors

  • Parameters

    • docTheme: IDocTheme = null
    • indexedColors: string[] = null
    • defaultFontSize: number = 11

    Returns SheetStyle

Methods

  • Parameters

    • state: SharedCellStyleState

    Returns void

  • Parameters

    • ref: any

    Returns void

  • Add a reference for a shared style. This is done to allow styles to be shared. The reference passed is used to track the current style usage. Once it's released or GC'ed the style will be release from the shared pool.

    Parameters

    Returns ICellStyle

    Remarks

    Returns a reference to a new style. If will generally be the same cell style but if the cells style was created from a different styles then a new one will be returned.

    Style

    The previously created style

  • Allows for a non managed style. Useful for tooltips or other transient styles.

    Parameters

    • adjustment: Partial<{
          alignment: string | CellAlignmentValues | Partial<{
              horizontal: string | ((value, resolveShorthands?) => string);
              indent: string | number | ((value, resolveShorthands?) => string | number);
              justifyLastLine: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              overflow: string | ((value, resolveShorthands?) => string);
              readingDirection: string | ((value, resolveShorthands?) => string);
              relativeIndent: string | number | ((value, resolveShorthands?) => string | number);
              rotation: string | number | ((value, resolveShorthands?) => string | number);
              stacked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              vertical: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | CellAlignmentValues);
          border: string | CellBorderValues | Partial<{
              bottom: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalDown: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalUp: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              horizontal: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              left: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              right: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              top: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              vertical: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
          }> | ((value, resolveShorthands?) => string | CellBorderValues);
          fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
              val: string | ((value, resolveShorthands?) => string);
              adjustments: any;
              asCSS: any;
              isEqual: any;
              isImmutable: any;
              toHSLA: any;
              toHex: any;
              toJSON: any;
              toRGBA: any;
              toString: any;
          } | {
              color: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
          } | {
              angle: string | number | ((value, resolveShorthands?) => string | number);
              fillTo: string | Rectangle | Partial<{
                  bottom: (...) | (...) | (...);
                  left: (...) | (...) | (...);
                  right: (...) | (...) | (...);
                  top: (...) | (...) | (...);
              }> | ((value, resolveShorthands?) => string | Rectangle);
              fillType: string | ((value, resolveShorthands?) => string);
              gradientType: string | ((value, resolveShorthands?) => string);
              stops: string | GradientStop[] | (string | GradientStop | Partial<(...)> | ((value, resolveShorthands?) => ...))[] | ((value, resolveShorthands?) => string | (...)[]);
          } | {
              background: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
              foreground: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              patternType: string | ((value, resolveShorthands?) => string);
          } | {
              fillType: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues);
          font: string | FontValues | Partial<{
              extend: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              family: string | ((value, resolveShorthands?) => string);
              familyFallbacks: string | string[] | (string | ((value, resolveShorthands?) => string))[] | ((value, resolveShorthands?) => string | string[]);
              fill: string | AdjustedColor | Partial<{
                  val: string | ((value, resolveShorthands?) => ...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              letterSpacing: string | number | ((value, resolveShorthands?) => string | number);
              outline: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              scheme: string | ((value, resolveShorthands?) => string);
              shadow: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              size: string | number | ((value, resolveShorthands?) => string | number);
              strike: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              style: string | ((value, resolveShorthands?) => string);
              underline: string | boolean | ((value, resolveShorthands?) => string | boolean);
              verticalAlign: string | ((value, resolveShorthands?) => string);
              weight: string | number | ((value, resolveShorthands?) => string | number);
          }> | ((value, resolveShorthands?) => string | FontValues);
          namedStyle: string | ((value, resolveShorthands?) => string);
          numberFormat: string | ((value, resolveShorthands?) => string);
          protection: string | CellProtectionValues | Partial<{
              formulaHidden: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              locked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
          }> | ((value, resolveShorthands?) => string | CellProtectionValues);
          quotePrefix: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
      }> | ICellStyleUpdater
    • original: ICellStyle

      (And original values to inherit from)

    Returns ICellStyle

  • Themes do not contain font sizes but it is possible to set a default font size at the document or application level.

    Returns number

  • Return an array of colors that will be used to resolve any colors that use IndexXX or ColorXX as a key.

    Returns readonly AdjustedColor[]

    Remarks

    This will also return a list of colors.

  • Returns The named style from either a custom style or a builtin.

    Parameters

    • name: string

    Returns INamedCellStyle

    Remarks

    Will try to return:

    1. The custom style for the name
    2. The builtin style for the name.
    3. nul if it doesn't exist.
  • Returns a style that is an adjustment of the original. This method also tracks usages of the styles.

    If an adjustment of null or has no values then the 'named' style will be returned.

    Note - If a style that is being updated is using the same original cell and the same ref. The original style is released.

    Parameters

    • adjustment: Partial<{
          alignment: string | CellAlignmentValues | Partial<{
              horizontal: string | ((value, resolveShorthands?) => string);
              indent: string | number | ((value, resolveShorthands?) => string | number);
              justifyLastLine: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              overflow: string | ((value, resolveShorthands?) => string);
              readingDirection: string | ((value, resolveShorthands?) => string);
              relativeIndent: string | number | ((value, resolveShorthands?) => string | number);
              rotation: string | number | ((value, resolveShorthands?) => string | number);
              stacked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              vertical: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | CellAlignmentValues);
          border: string | CellBorderValues | Partial<{
              bottom: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalDown: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalUp: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              horizontal: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              left: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              right: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              top: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              vertical: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
          }> | ((value, resolveShorthands?) => string | CellBorderValues);
          fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
              val: string | ((value, resolveShorthands?) => string);
              adjustments: any;
              asCSS: any;
              isEqual: any;
              isImmutable: any;
              toHSLA: any;
              toHex: any;
              toJSON: any;
              toRGBA: any;
              toString: any;
          } | {
              color: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
          } | {
              angle: string | number | ((value, resolveShorthands?) => string | number);
              fillTo: string | Rectangle | Partial<{
                  bottom: (...) | (...) | (...);
                  left: (...) | (...) | (...);
                  right: (...) | (...) | (...);
                  top: (...) | (...) | (...);
              }> | ((value, resolveShorthands?) => string | Rectangle);
              fillType: string | ((value, resolveShorthands?) => string);
              gradientType: string | ((value, resolveShorthands?) => string);
              stops: string | GradientStop[] | (string | GradientStop | Partial<(...)> | ((value, resolveShorthands?) => ...))[] | ((value, resolveShorthands?) => string | (...)[]);
          } | {
              background: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
              foreground: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              patternType: string | ((value, resolveShorthands?) => string);
          } | {
              fillType: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues);
          font: string | FontValues | Partial<{
              extend: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              family: string | ((value, resolveShorthands?) => string);
              familyFallbacks: string | string[] | (string | ((value, resolveShorthands?) => string))[] | ((value, resolveShorthands?) => string | string[]);
              fill: string | AdjustedColor | Partial<{
                  val: string | ((value, resolveShorthands?) => ...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              letterSpacing: string | number | ((value, resolveShorthands?) => string | number);
              outline: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              scheme: string | ((value, resolveShorthands?) => string);
              shadow: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              size: string | number | ((value, resolveShorthands?) => string | number);
              strike: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              style: string | ((value, resolveShorthands?) => string);
              underline: string | boolean | ((value, resolveShorthands?) => string | boolean);
              verticalAlign: string | ((value, resolveShorthands?) => string);
              weight: string | number | ((value, resolveShorthands?) => string | number);
          }> | ((value, resolveShorthands?) => string | FontValues);
          namedStyle: string | ((value, resolveShorthands?) => string);
          numberFormat: string | ((value, resolveShorthands?) => string);
          protection: string | CellProtectionValues | Partial<{
              formulaHidden: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              locked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
          }> | ((value, resolveShorthands?) => string | CellProtectionValues);
          quotePrefix: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
      }> | ICellStyleUpdater
    • original: ICellStyle
    • ref: any

    Returns ICellStyle

    Adjustment

    either a new partial style or a ICellStyleUpdater that

    Original

    the original style. This is either another SharedStyle which will be used as a template or a NamedStyle. If this is not specified then the normal style will be used.

    Ref

    This is any object that is used for tracking.

  • Returns The table style. This can be either a custom or a built in table style.

    Parameters

    • name: string

    Returns ITableStyle

    Remarks

    Will try to return:

    1. The custom style for the name
    2. The builtin style for the name.
    3. null if it doesn't exist.
  • This will remove a custom styles or hide built-in cell style.

    Parameters

    • style: string | INamedCellStyle

      The named style or the string name of a named style.

    Returns boolean

    Returns a flag indicating if the style was removed or hidden.

  • Converts a list of SerializableCellStyleValues that contain shorthand values into native values. It will also remove any value that resolve to the same values as the referenced named style (or Normal if this is not specified)

    Parameters

    • values: Partial<{
          alignment: string | CellAlignmentValues | Partial<{
              horizontal: string;
              indent: string | number;
              justifyLastLine: string | Partial<boolean>;
              overflow: string;
              readingDirection: string;
              relativeIndent: string | number;
              rotation: string | number;
              stacked: string | Partial<boolean>;
              vertical: string;
          }>;
          border: string | CellBorderValues | Partial<{
              bottom: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              diagonalDown: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              diagonalUp: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              horizontal: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              left: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              right: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              top: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
              vertical: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  style: string;
              }>;
          }>;
          fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
              val: string;
              adjustments: any;
              asCSS: any;
              isEqual: any;
              isImmutable: any;
              toHSLA: any;
              toHex: any;
              toJSON: any;
              toRGBA: any;
              toString: any;
          } | {
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              fillType: string;
          } | {
              angle: string | number;
              fillTo: string | Rectangle | Partial<{
                  bottom: string | number;
                  left: string | number;
                  right: string | number;
                  top: string | number;
              }>;
              fillType: string;
              gradientType: string;
              stops: string | GradientStop[] | (string | GradientStop | Partial<{
                  color: ...;
                  offset?: ...;
              }>)[];
          } | {
              background: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              fillType: string;
              foreground: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              patternType: string;
          } | {
              fillType: string;
          }>;
          font: string | FontValues | Partial<{
              extend: string | Partial<boolean>;
              family: string;
              familyFallbacks: string | string[];
              fill: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              letterSpacing: string | number;
              outline: string | Partial<boolean>;
              scheme: string;
              shadow: string | Partial<boolean>;
              size: string | number;
              strike: string | Partial<boolean>;
              style: string;
              underline: string | boolean;
              verticalAlign: string;
              weight: string | number;
          }>;
          namedStyle: string;
          numberFormat: string;
          protection: string | CellProtectionValues | Partial<{
              formulaHidden: string | Partial<boolean>;
              locked: string | Partial<boolean>;
          }>;
          quotePrefix: string | Partial<boolean>;
      }>

    Returns Partial<CellStyleValues>

  • Given a border rationalize the border edges for a coord with a range.

    Parameters

    • original: Partial<{
          bottom: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          diagonalDown: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          diagonalUp: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          horizontal: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          left: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          right: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          top: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
          vertical: string | BorderStroke | Partial<{
              color: string | AdjustedColor | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }>;
              style: string;
          }>;
      }>
    • coords: CellCoords
    • range: CellRangeCoords

    Returns Partial<{
        bottom: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        diagonalDown: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        diagonalUp: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        horizontal: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        left: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        right: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        top: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
        vertical: string | BorderStroke | Partial<{
            color: string | AdjustedColor | Partial<{
                val: string;
                adjustments: any;
                asCSS: any;
                isEqual: any;
                isImmutable: any;
                toHSLA: any;
                toHex: any;
                toJSON: any;
                toRGBA: any;
                toString: any;
            }>;
            style: string;
        }>;
    }>

  • This will remove a custom cell style.

    Parameters

    • style: string | INamedCellStyle

      The named style or the string name of a named style.

    Returns boolean

    true if the style was removed.

  • This will remove a custom table style.

    Parameters

    • styleName: string

      A string of the name of the table.

    Returns boolean

    true if the style was removed.

    Remarks

    If the style is a built-in style or doesn't exist then this will do nothing and remove false.

  • This will add or update a cell style.

    Parameters

    • name: string
    • style: ICellStyle | Partial<{
          alignment: string | CellAlignmentValues | Partial<{
              horizontal: string | ((value, resolveShorthands?) => string);
              indent: string | number | ((value, resolveShorthands?) => string | number);
              justifyLastLine: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              overflow: string | ((value, resolveShorthands?) => string);
              readingDirection: string | ((value, resolveShorthands?) => string);
              relativeIndent: string | number | ((value, resolveShorthands?) => string | number);
              rotation: string | number | ((value, resolveShorthands?) => string | number);
              stacked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              vertical: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | CellAlignmentValues);
          border: string | CellBorderValues | Partial<{
              bottom: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalDown: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              diagonalUp: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              horizontal: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              left: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              right: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              top: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
              vertical: string | BorderStroke | Partial<{
                  color: string | AdjustedColor | Partial<(...)> | ((value, resolveShorthands?) => ...);
                  style: string | ((value, resolveShorthands?) => ...);
              }> | ((value, resolveShorthands?) => string | BorderStroke);
          }> | ((value, resolveShorthands?) => string | CellBorderValues);
          fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
              val: string | ((value, resolveShorthands?) => string);
              adjustments: any;
              asCSS: any;
              isEqual: any;
              isImmutable: any;
              toHSLA: any;
              toHex: any;
              toJSON: any;
              toRGBA: any;
              toString: any;
          } | {
              color: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
          } | {
              angle: string | number | ((value, resolveShorthands?) => string | number);
              fillTo: string | Rectangle | Partial<{
                  bottom: (...) | (...) | (...);
                  left: (...) | (...) | (...);
                  right: (...) | (...) | (...);
                  top: (...) | (...) | (...);
              }> | ((value, resolveShorthands?) => string | Rectangle);
              fillType: string | ((value, resolveShorthands?) => string);
              gradientType: string | ((value, resolveShorthands?) => string);
              stops: string | GradientStop[] | (string | GradientStop | Partial<(...)> | ((value, resolveShorthands?) => ...))[] | ((value, resolveShorthands?) => string | (...)[]);
          } | {
              background: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              fillType: string | ((value, resolveShorthands?) => string);
              foreground: string | AdjustedColor | Partial<{
                  val: (...) | (...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              patternType: string | ((value, resolveShorthands?) => string);
          } | {
              fillType: string | ((value, resolveShorthands?) => string);
          }> | ((value, resolveShorthands?) => string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues);
          font: string | FontValues | Partial<{
              extend: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              family: string | ((value, resolveShorthands?) => string);
              familyFallbacks: string | string[] | (string | ((value, resolveShorthands?) => string))[] | ((value, resolveShorthands?) => string | string[]);
              fill: string | AdjustedColor | Partial<{
                  val: string | ((value, resolveShorthands?) => ...);
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              }> | ((value, resolveShorthands?) => string | AdjustedColor);
              letterSpacing: string | number | ((value, resolveShorthands?) => string | number);
              outline: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              scheme: string | ((value, resolveShorthands?) => string);
              shadow: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              size: string | number | ((value, resolveShorthands?) => string | number);
              strike: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              style: string | ((value, resolveShorthands?) => string);
              underline: string | boolean | ((value, resolveShorthands?) => string | boolean);
              verticalAlign: string | ((value, resolveShorthands?) => string);
              weight: string | number | ((value, resolveShorthands?) => string | number);
          }> | ((value, resolveShorthands?) => string | FontValues);
          hidden: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
          iLevel: string | number | ((value, resolveShorthands?) => string | number);
          namedStyle: string | ((value, resolveShorthands?) => string);
          numberFormat: string | ((value, resolveShorthands?) => string);
          protection: string | CellProtectionValues | Partial<{
              formulaHidden: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
              locked: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
          }> | ((value, resolveShorthands?) => string | CellProtectionValues);
          quotePrefix: string | Partial<boolean> | ((value, resolveShorthands?) => string | boolean);
      }> | INamedCellStyleUpdater
    • mergeIfExists: boolean = false

      If true then the style will be merged with the existing style otherwise is a replace.

    Returns INamedCellStyle

    the new style after any merges.

    Remarks

    Case insensitive; for duplicate detection purposes.

    Default Value

    false
    
  • This will add or update a table style.

    Parameters

    • name: string

      A string of the name of the table.

    • tableStyleValues: Partial<{
          fFirstTotalCell?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          firstColumn?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          firstColumnStripe?: string | SizeCellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
              size?: string | number;
          }>;
          firstHeaderCell?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          firstRowStripe?: string | SizeCellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
              size?: string | number;
          }>;
          headerRow?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          lastColumn?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          lastHeaderCell?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          lastTotalCell?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          name?: string;
          pivot?: string | Partial<boolean>;
          secondColumnStripe?: string | SizeCellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
              size?: string | number;
          }>;
          secondRowStripe?: string | SizeCellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
              size?: string | number;
          }>;
          table?: string | Partial<boolean>;
          totalRow?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
          wholeTable?: string | CellStyleValues | Partial<{
              alignment: string | CellAlignmentValues | Partial<{
                  horizontal: string;
                  indent: string | number;
                  justifyLastLine: string | Partial<boolean>;
                  overflow: string;
                  readingDirection: string;
                  relativeIndent: string | number;
                  rotation: string | number;
                  stacked: string | Partial<boolean>;
                  vertical: string;
              }>;
              border: string | CellBorderValues | Partial<{
                  bottom: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalDown: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  diagonalUp: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  horizontal: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  left: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  right: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  top: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
                  vertical: string | BorderStroke | Partial<{
                      color: ...;
                      style: ...;
                  }>;
              }>;
              fill: string | AdjustedColor | SolidFillValues | GradientFillValues | PatternFillValues | NoneFillValues | Partial<{
                  val: string;
                  adjustments: any;
                  asCSS: any;
                  isEqual: any;
                  isImmutable: any;
                  toHSLA: any;
                  toHex: any;
                  toJSON: any;
                  toRGBA: any;
                  toString: any;
              } | {
                  color: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
              } | {
                  angle: string | number;
                  fillTo: string | Rectangle | Partial<(...)>;
                  fillType: string;
                  gradientType: string;
                  stops: string | (...)[] | (...)[];
              } | {
                  background: string | AdjustedColor | Partial<(...)>;
                  fillType: string;
                  foreground: string | AdjustedColor | Partial<(...)>;
                  patternType: string;
              } | {
                  fillType: string;
              }>;
              font: string | FontValues | Partial<{
                  extend: string | Partial<boolean>;
                  family: string;
                  familyFallbacks: string | string[];
                  fill: string | AdjustedColor | Partial<{
                      val: ...;
                      adjustments: any;
                      asCSS: any;
                      isEqual: any;
                      isImmutable: any;
                      toHSLA: any;
                      toHex: any;
                      toJSON: any;
                      toRGBA: any;
                      toString: any;
                  }>;
                  letterSpacing: string | number;
                  outline: string | Partial<boolean>;
                  scheme: string;
                  shadow: string | Partial<boolean>;
                  size: string | number;
                  strike: string | Partial<boolean>;
                  style: string;
                  underline: string | boolean;
                  verticalAlign: string;
                  weight: string | number;
              }>;
              namedStyle: string;
              numberFormat: string;
              protection: string | CellProtectionValues | Partial<{
                  formulaHidden: string | Partial<boolean>;
                  locked: string | Partial<boolean>;
              }>;
              quotePrefix: string | Partial<boolean>;
          }>;
      }>

      the values to set for the table style.

    Returns ITableStyle

    Remarks

    Case insensitive; for duplicate detection purposes.

  • Set the default fontSize. Note - A theme does NOT contain this.

    Parameters

    • fontSize: number

      The new default font size.

    Returns void

  • Set the default table style to use if a table is created without specifying a style.

    Parameters

    • styleName: string

      A string of the name of the table

    Returns boolean

    Remarks

    The style must exist or the defaultStyle will be set to 'TableStyleMedium2'.

  • Checks the current name to see if this is a valid sheetName.

    Parameters

    • name: string
    • checkDuplicates: boolean = false

    Returns void