An immutable object which represents a color in a Microsoft Excel workbook.

See

  • [[IWorksheetCellFormat.bottomBorderColorInfo]]
  • [[IWorksheetCellFormat.diagonalBorderColorInfo]]
  • [[IWorksheetCellFormat.leftBorderColorInfo]]
  • [[IWorksheetCellFormat.rightBorderColorInfo]]
  • [[IWorksheetCellFormat.topBorderColorInfo]]
  • [[IWorkbookFont.colorInfo]]
  • [[CellFillPattern.backgroundColorInfo]]
  • [[CellFillPattern.patternColorInfo]]
  • [[CellFillGradientStop.colorInfo]]

Hierarchy

Hierarchy

  • Base
    • WorkbookColorInfo

Constructors

  • Returns WorkbookColorInfo

  • Parameters

    • color: string | Color

    Returns WorkbookColorInfo

  • Parameters

    • color: string | Color
    • tint: number

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    • color: string | Color
    • themeColorType: WorkbookThemeColorType
    • tint: number
    • isLoading: boolean
    • Optional preventUsingAutomaticColor: boolean

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    Returns WorkbookColorInfo

  • Parameters

    • Rest ..._rest: any[]

    Returns WorkbookColorInfo

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get color(): string | Color
  • Gets the base color associated of the [[WorkbookColorInfo]].

    See

    [[tint]]

    Returns string | Color

  • get isAutomatic(): boolean
  • Gets the value which indicates whether the [[WorkbookColorInfo]] is automatic, or the window text system color.

    Returns boolean

  • get themeColorType(): WorkbookThemeColorType
  • Gets the base theme color associated of the [[WorkbookColorInfo]].

    See

    [[tint]]

    Returns WorkbookThemeColorType

  • get tint(): number
  • Gets the to apply to the base color, from -1.0 (100% darken) to 1.0 (100% lighten).

    See

    • [[color]]
    • [[themeColorType]]

    Returns number

  • get transform(): WorkbookColorTransform
  • Returns the associated [[WorkbookColorTransform]], or null if this instance is not associated with a transform.

    Returns WorkbookColorTransform

  • get automatic(): WorkbookColorInfo
  • Gets the automatic color, which is the window text system color.

    See

    [[isAutomatic]]

    Returns WorkbookColorInfo

Methods

  • Determines whether the [[WorkbookColorInfo]] is equal to the specified object.

    Parameters

    • obj: any

      The object to test for equality.

    Returns boolean

  • Gets the hash code for the [[WorkbookColorInfo]].

    Returns number

  • Gets the actual color which will be seen in Microsoft Excel if the [[WorkbookColorInfo]] is used.

    Throws

    [[ArgumentNullException]] The [[themeColorType]] is not null. When the ThemeColorType is set, the [[getResolvedColor]] method must be called with a non-null [[Workbook]].

    Returns string

  • Gets the actual color which will be seen in Microsoft Excel if the [[WorkbookColorInfo]] is used.

    Throws

    [[ArgumentNullException]] 'workbook' is null and [[themeColorType]] is not null. When the ThemeColorType is set, the method must be called with a non-null [[Workbook]].

    Parameters

    • workbook: Workbook

      The workbook in which the WorkbookColorInfo is used.

    Returns string

  • Returns Base

  • Gets the string representation of the [[WorkbookColorInfo]].

    Returns string

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns boolean

  • Parameters

    • a: any
    • b: any

    Returns boolean

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns number

  • Parameters

    • a: any
    • b: any

    Returns boolean