Interacting with editorsPresentation APIMethodsApplyTheme本页总览ApplyThemeAsk a question 通过索引或名称将主题应用于演示文稿。 备注此功能在 ONLYOFFICE Docs 付费版本中可用。 语法 expression.ApplyTheme(themeIndex); expression - 表示 Api 类的变量。 参数 名称必需/可选数据类型默认值描述themeIndex必需number | string主题索引(数字)或主题名称(字符串,不区分大小写)。 返回值 boolean 示例 window.Asc.plugin.executeMethod("ApplyTheme", [5]);