[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IWorkbook.ApplyTheme

ApplyTheme Method

ApplyTheme(Theme)

Applies the specified theme to the current workbook.

Declaration
bool ApplyTheme(Theme theme = null)
Function ApplyTheme(Optional theme As Theme = Nothing) As Boolean
Parameters
Type Name Description
Theme theme

A Theme object indicates the theme to apply.

Returns
Type Description
bool

true if the theme is applied successfully; otherwise, false.

ApplyTheme(string)

Applies the specified theme to the current workbook.

Declaration
bool ApplyTheme(string filename = null)
Function ApplyTheme(Optional filename As String = Nothing) As Boolean
Parameters
Type Name Description
string filename

A string value indicates the theme file to apply.

Returns
Type Description
bool

true if the theme is loaded and applied successfully; otherwise, false.

ApplyTheme(Stream)

Applies the specified theme to the current workbook.

Declaration
bool ApplyTheme(Stream stream)
Function ApplyTheme(stream As Stream) As Boolean
Parameters
Type Name Description
Stream stream

A Stream object indicates the theme data to apply.

Returns
Type Description
bool

true if the theme is loaded and applied successfully; otherwise, false.