跳到主要内容

GetAllContentControls

Returns information about all the content controls that have been added to the page.

Syntax

expression.GetAllContentControls();

expression - A variable that represents a Api class.

Parameters

This method doesn't have any parameters.

Returns

ContentControl[]

Example

var flagInit = false;
window.Asc.plugin.init = function (text) {
if (!flagInit) {
this.executeMethod ("GetAllContentControls", 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;
}
}
});
flagInit = true;
...
}
};