跳到主要内容

GetAllForms

返回已添加到文档的所有表单的信息。

语法

expression.GetAllForms();

expression - 表示 Api 类的变量。

参数

此方法没有任何参数。

返回值

ContentControl[]

示例

window.Asc.plugin.executeMethod ("GetAllForms", null, function (data) {
for (var i = 0; i < data.length; i++) {
if (data[i].Tag == 11) {
this.Asc.plugin.executeMethod ("SelectContentControl", [data[i].InternalId]);
break;
}
}
});