Skip to main content
A newer version of this page is available. .
All docs
V21.1
.NET Framework 4.5.2+
Row

WorkbookTheme.Reset(ThemePreset) Method

Resets a custom theme to the default Office theme.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

void Reset(
    ThemePreset preset
)

Parameters

Name Type Description
preset ThemePreset

One of the predefined Office themes.

Remarks

Call the Reset method to use one of the predefined Office themes instead of a custom theme.

using DevExpress.Spreadsheet;
// ...

WorkbookTheme docTheme = workbook.Theme;
// Change the document theme
// to the default Office 2013 theme.
docTheme.Reset(ThemePreset.Office2013);
See Also