Table of Contents

TExcelFile.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 SetColorTheme(TPrimaryThemeColor, TDrawingColor) and GetColorTheme(TPrimaryThemeColor) methods.

Syntax

Unit: FlexCel.Core

procedure TExcelFile.SetTheme(aTheme: ITheme); virtual; abstract;

Parameters

<-> Parameter Type Description
aTheme ITheme Theme to set. You would normally use the result from 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

See also