Skip to main content

ApplyTheme

Applies a theme to the presentation by index or name.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax

expression.ApplyTheme(themeIndex);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
themeIndexRequirednumber | stringThe theme index (number) or theme name (string, case-insensitive).

Returns

boolean

Example

window.Asc.plugin.executeMethod("ApplyTheme", [5]);