ExcelFile.SetColorTheme Method
Overloads
- ExcelFile.SetColorTheme(TThemeColor, TDrawingColor)
- ExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor)
ExcelFile.SetColorTheme(TThemeColor, TDrawingColor)
Changes a color on the Excel theme. Only has effect in Excel 2007.
This method is provided to not break compatibility with older FlexCel versions. In newer code, you should use SetColorTheme(TPrimaryThemeColor, TDrawingColor) instead. If you want to change the full theme, use GetTheme and SetTheme
Syntax
Namespace: FlexCel.Core
public abstract void SetColorTheme(TThemeColor themeColor, TDrawingColor value)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
themeColor | TThemeColor | Color of the theme to change. The only values that make sense are those included in TPrimaryThemeColor. Colors outside that range will be mapped to the nearest color: For example Background1 will be mapped to Light1 and ForeGround1 will be mapped to Dark1. | |
value | TDrawingColor | Color to set. |
See also
ExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor)
Changes a color on the Excel theme. Only has effect in Excel 2007.
If you want to change the full theme, use GetTheme and SetTheme
Syntax
Namespace: FlexCel.Core
public abstract void SetColorTheme(TPrimaryThemeColor themeColor, TDrawingColor value)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
themeColor | TPrimaryThemeColor | Color of the theme to change. | |
value | TDrawingColor | Color to set. |