Table of Contents

TXlsFile.SetColorTheme Method

Overloads

TXlsFile.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 TExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor) instead. If you want to change the full theme, use TExcelFile.GetTheme and TExcelFile.SetTheme

Syntax

Unit: FlexCel.XlsAdapter

procedure TXlsFile.SetColorTheme(const themeColor: TThemeColor; const value: TDrawingColor); overload; override;

Parameters

<-> Parameter Type Description
const 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.
const value TDrawingColor Color to set.

See also

TXlsFile.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 TExcelFile.GetTheme and TExcelFile.SetTheme

Syntax

Unit: FlexCel.XlsAdapter

procedure TXlsFile.SetColorTheme(const themeColor: TPrimaryThemeColor; const value: TDrawingColor); overload; override;

Parameters

<-> Parameter Type Description
const themeColor TPrimaryThemeColor Color of the theme to change.
const value TDrawingColor Color to set.

See also