GetAllOleObjects

GetAllOleObjects(sPluginId) → { Array.<OLEObjectData> }

Returns all OLE object data for objects which can be opened by the specified plugin. If sPluginId is not defined, this method returns all OLE objects contained in the currrent document.

Parameters:

Name Type Description
sPluginId string

Plugin identifier. It must be of the asc.{UUID} type.

Returns:

Type
Array.<OLEObjectData>

Example

Copy code
window.Asc.plugin.executeMethod ("GetAllOleObjects", ["asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}"], function (data) {
    for (var i = 0; i < data.length; i++) {
        if (data[i].InternalId == "5_665") {
            this.Asc.plugin.executeMethod ("SelectOleObject", [data[i].InternalId]);
            break;
        }
    }
});