Back to Devexpress

WorkbookTheme.Reset(ThemePreset) Method

officefileapi-devexpress-dot-spreadsheet-dot-workbooktheme-dot-reset-x28-devexpress-dot-spreadsheet-dot-themepreset-x29.md

latest1.8 KB
Original Source

WorkbookTheme.Reset(ThemePreset) Method

Resets a custom theme to the default Office theme.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Reset(
    ThemePreset preset
)
vb
Sub Reset(
    preset As ThemePreset
)

Parameters

NameTypeDescription
presetThemePreset

One of the predefined Office themes.

|

Remarks

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

csharp
using DevExpress.Spreadsheet;
// ...

WorkbookTheme docTheme = workbook.Theme;
// Change the document theme
// to the default Office 2013 theme.
docTheme.Reset(ThemePreset.Office2013);
vb
Imports DevExpress.Spreadsheet
' ...

Dim docTheme As WorkbookTheme = workbook.Theme
' Change the document theme
' to the default Office 2013 theme.
docTheme.Reset(ThemePreset.Office2013)

See Also

WorkbookTheme Interface

WorkbookTheme Members

DevExpress.Spreadsheet Namespace