TXlsFile.SetTheme Method
This is an advanced method, that allows you to set the full theme in use. Normally you will just want to replace colors, and you can do this with TExcelFile.SetColorTheme(TPrimaryThemeColor, TDrawingColor) and TExcelFile.GetColorTheme(TPrimaryThemeColor) methods.
Syntax
Unit: FlexCel.XlsAdapter
procedure TXlsFile.SetTheme(aTheme: ITheme); override;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aTheme | ITheme | Theme to set. You would normally use the result from TExcelFile.GetTheme here, or you might load a method from a ".tmx" file. There are many standard tmx files available in an Office installation under the "Document Themes Version" folder |