Skip to main content

GetAllOleObjects

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.

Syntax

expression.GetAllOleObjects(sPluginId);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
sPluginIdRequiredstringPlugin identifier. It must be of the asc.{UUID} type.

Returns

OLEObjectData[]

Example

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;
}
}
});