Skip to main content

XlColor.ThemeColor Property

Gets the theme color based on which the XlColor object is created.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.2.Core.dll

Declaration

public XlThemeColor ThemeColor { get; }

Property Value

Type Description
XlThemeColor

An XlThemeColor enumeration member that is one of 12 base colors used by the current document theme.

Available values:

Show 13 items
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.

Specifies the theme color used to highlight the inserted hyperlink.

Specifies the theme color used to highlight the visited hyperlink.

Remarks

The ThemeColor property obtains the theme color used to create an XlColor instance when the XlColor.FromTheme method is called. If an XlColor object is not based on a theme color, the ThemeColor property returns XlThemeColor.None.

See Also