跳到主要内容

RemoveOleObjects

Removes several OLE objects from the document by their internal IDs.

Syntax

expression.RemoveOleObjects(arrObjects);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arrObjectsRequiredOLEObjectData[]An array of the identifiers which are used to work with OLE objects added to the document. Example: [{"InternalId": "5_556"}].

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("RemoveOleObjects", [[{"InternalId": "5_556"}]]);