Skip to main content
All docs
V24.1
Row

WorkbookTheme.Reset(ThemePreset) Method

Resets a custom theme to the default Office theme.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

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