Table of Contents

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

Syntax

Namespace: FlexCel.XlsAdapter

public override void SetTheme(TTheme aTheme)

Parameters

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