ThemeColor enum Styling

The twelve document-theme color slots, in the order Excel indexes them in styles.xml (theme="N"). Use with ExcelColor.theme to author a color that follows the workbook's theme.

Inheritance
Available extensions

Values

background1 → const ThemeColor

theme="0": the first light/background color (usually white).

text1 → const ThemeColor

theme="1": the first dark/text color (usually black).

background2 → const ThemeColor

theme="2": the second light/background color.

text2 → const ThemeColor

theme="3": the second dark/text color.

accent1 → const ThemeColor

theme="4": accent 1.

accent2 → const ThemeColor

theme="5": accent 2.

accent3 → const ThemeColor

theme="6": accent 3.

accent4 → const ThemeColor

theme="7": accent 4.

accent5 → const ThemeColor

theme="8": accent 5.

accent6 → const ThemeColor

theme="9": accent 6.

theme="10": hyperlink color.

theme="11": followed-hyperlink color.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ThemeColor>
A constant List of the values in this enum, in order of their declaration.