OleObjectCollection
Contents
[
Hide
]OleObjectCollection class
Represents embedded OLE objects.
class OleObjectCollection;
Methods
| Method | Description |
|---|---|
| get(number) | Gets the OleObject element at the specified index. |
| add(number, number, number, number, Uint8Array) | Adds an OleObject to the collection. |
| add(number, number, number, number, Uint8Array, string) | Adds a linked OleObject to the collection. |
| clear() | Remove all embedded OLE objects. |
| removeAt(number) | Removes the element at the specified index. |
get(number)
Gets the OleObject element at the specified index.
get(index: number) : OleObject;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The zero based index of the element. |
Returns
The element at the specified index.
add(number, number, number, number, Uint8Array)
Adds an OleObject to the collection.
add(upperLeftRow: number, upperLeftColumn: number, height: number, width: number, imageData: Uint8Array) : number;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| upperLeftRow | number | Upper left row index. |
| upperLeftColumn | number | Upper left column index. |
| height | number | Height of oleObject, in unit of pixel. |
| width | number | Width of oleObject, in unit of pixel. |
| imageData | number[] | Image of ole object as byte array. |
Returns
OleObject object index.
add(number, number, number, number, Uint8Array, string)
Adds a linked OleObject to the collection.
add(upperLeftRow: number, upperLeftColumn: number, height: number, width: number, imageData: Uint8Array, linkedFile: string) : number;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| upperLeftRow | number | Upper left row index. |
| upperLeftColumn | number | Upper left column index. |
| height | number | Height of oleObject, in unit of pixel. |
| width | number | Width of oleObject, in unit of pixel. |
| imageData | number[] | Image of ole object as byte array. |
| linkedFile | string |
Returns
OleObject object index.
clear()
Remove all embedded OLE objects.
clear() : void;
removeAt(number)
Removes the element at the specified index.
removeAt(index: number) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The specified index. |