Table of Contents

TTheme Class

Contains a complete definition for an Office Theme.

Syntax

Namespace: FlexCel.Core

public class TTheme

Constructors

Name Description
TTheme Creates a new standard "Office" theme with Excel 2007 defaults.
Note that the standard Office theme for newer versions changed.

Methods

Name Description
Clone Returns a deep copy of this object.
GetThemeVersion Returns the theme id associated with a specific Excel version. If FlexCel doesn't know about the version, it returns -1.
FileFormat Returns the file format normally associated with the theme. Note that multiple Excel version can use the same theme, so this method will return the latest Excel using this theme.

Properties

Name Description
Name Name of the theme definition. This will be shown in Excel UI.
Elements Elements of the theme.
ThemeVersion Excel version that saved this theme. For Excel 2007 this value is 124226. For themes new to Excel 2010, this value might be 144315. Excel 2016 is 164011 and Excel 2019 is 166925
IsStandard2007 Returns true if the theme is standard as saved by Excel 2007. Note that Excel versions bigger than 2010 use different standard themes.