Repository navigation
Using Themes
Mats Alm edited this page Nov 10, 2026
·
12 revisions
This page has moved. The current version of this page is at https://epplussoftware.com/docs/styling/using-themes/. The EPPlus documentation is no longer updated in this wiki; please use the EPPlus guides and update your bookmarks.
EPPlus 5/6 support creating and loading themes - this is done via the Workbook.ThemeManager.
A theme can be exported from Excel using the .thmx format and then loaded via EPPlus:
var thmxFile = new FileInfo("c:\\temp\\integral.thmx");
package.Workbook.ThemeManager.Load(thmxFile);The theme can then be altered via the ThemeManager.CurrentTheme property:
// Change the color of the Accent1 theme color.
package.Workbook.ThemeManager.CurrentTheme.ColorScheme.Accent1.SetRgbColor(Color.FromArgb(32, 78, 224));- See Sample 5.3-C# or Sample 5.3-VB
- Our web sample 1 also shows how to change themes on a workbook using exported
.thmxfiles.
EPPlus Software AB - https://epplussoftware.com
- What is new in EPPlus 5+
- Breaking Changes in EPPlus 5
- Breaking Changes in EPPlus 6
- Breaking Changes in EPPlus 7
- Breaking Changes in EPPlus 8
- Addressing a worksheet
- Dimension/Used range
- Copying ranges/sheets
- Insert/Delete
- Filling ranges
- Sorting ranges
- Taking and skipping columns/rows
- Data validation
- Comments
- Freeze and Split Panes
- Header and Footer
- Hyperlinks
- Autofit columns
- Grouping and Ungrouping Rows and Columns
- Formatting and styling
- The ExcelRange.Text property
- Conditional formatting
- Using Themes
- Working with custom named table- or slicer- styles
-
Formula Calculation
- Security considerations
- Circular references
- Referencing tables in formulas
- Supported Functions
- Dynamic array formulas
- Legacy array formulas
- Lambda functions
- Regression analysis functions
- Custom functions for calculations
- Function prefixes
- Precision as Displayed
- Cancelling a calculation
- Trim reference operator
- Working with filters
- Working with slicers
- Working with External Workbooks