XlThemeColor Enum
Lists the base colors of the document theme.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v18.1.Core.dll
Declaration
Members
Name | Description |
---|---|
None
|
Specifies that theme colors are not used to set a foreground or background color. |
Light1
|
Specifies the Light 1 text/background color. |
Dark1
|
Specifies the Dark 1 text/background color. |
Light2
|
Specifies the Light 2 text/background color. |
Dark2
|
Specifies the Dark 2 text/background color. |
Accent1
|
Specifies the Accent 1 theme color. |
Accent2
|
Specifies the Accent 2 theme color. |
Accent3
|
Specifies the Accent 3 theme color. |
Accent4
|
Specifies the Accent 4 theme color. |
Accent5
|
Specifies the Accent 5 theme color. |
Accent6
|
Specifies the Accent 6 theme color. |
Hyperlink
|
Specifies the theme color used to highlight the inserted hyperlink. |
FollowedHyperlink
|
Specifies the theme color used to highlight the visited hyperlink. |
Related API Members
The following properties accept/return XlThemeColor values:
Remarks
The values listed by this enumeration are used by following methods:
- XlCellFormatting.Themed - specifies themed formatting for a cell (for details, refer to the How to: Apply Themed Formatting to a Cell example).
- XlColor.FromTheme - creates an XlColor object, which can be used to set the color of different spreadsheet elements (e.g., cell background color, border line color, etc.). To obtain the theme color used to create an XlColor instance, use the XlColor.ThemeColor property.
If you change the document theme by using the IXlDocument.Theme property, the new set of colors corresponding to the selected theme, will be used.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the XlThemeColor enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.