XlsFile.SetColorTheme Method
Overloads
- XlsFile.SetColorTheme(TThemeColor, TDrawingColor)
- XlsFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor)
XlsFile.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 ExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor) instead. If you want to change the full theme, use ExcelFile.GetTheme and ExcelFile.SetTheme
Syntax
Namespace: FlexCel.XlsAdapter
public override 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
XlsFile.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 ExcelFile.GetTheme and ExcelFile.SetTheme
Syntax
Namespace: FlexCel.XlsAdapter
public override void SetColorTheme(TPrimaryThemeColor themeColor, TDrawingColor value)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
themeColor | TPrimaryThemeColor | Color of the theme to change. | |
value | TDrawingColor | Color to set. |