跳到主要内容

GetRestrictions

返回编辑器当前对文档应用的限制。

语法​

expression.GetRestrictions();

expression - 表示 Api 类的变量。

参数​

此方法没有任何参数。

返回值​

EditorRestrictions

示例​

window.Asc.plugin.executeMethod("GetRestrictions", [], function(restrictions) {
if (restrictions & 0x80)
console.log("The presentation cannot be changed");
});