Skip to content

Class ExcelThemeManager

Namespace: OfficeOpenXml.Drawing.Theme
Assembly: EPPlus.dll

Handels themes in a package

public class ExcelThemeManager

Inheritance

object ← ExcelThemeManager

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

CurrentTheme

The current theme. Null if not theme exists. CreateDefaultTheme Load(FileInfo) Load(Stream) Load(XmlDocument)

public ExcelTheme CurrentTheme { get; }

Property Value

ExcelTheme

Methods

CreateDefaultTheme()

Create the default theme.

public void CreateDefaultTheme()

DeleteCurrentTheme()

Delete the current theme

public void DeleteCurrentTheme()

Load(FileInfo)

Loads a .thmx file, exported from a Spread Sheet Application like Excel

public void Load(FileInfo thmxFile)

Parameters

thmxFile FileInfo

The path to the thmx file

Load(XmlDocument)

Loads a theme XmlDocument. Overwrites any previously set theme settings.

public void Load(XmlDocument themeXml)

Parameters

themeXml XmlDocument

The theme xml

Load(Stream)

Loads a .thmx file as a stream. Thmx files are exported from a Spread Sheet Application like Excel

public void Load(Stream thmxStream)

Parameters

thmxStream Stream

The thmx file as a stream