All docs
V21.2
21.2
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

WorkbookTheme.Reset(ThemePreset) Method

Resets a custom theme to the default Office theme.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.2.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