## OleObjectCollection::Add(int32_t, int32_t, int32_t, int32_t, const Vector \<uint8_t\>\&) method


Adds an [OleObject](../../oleobject/) to the collection.

```cpp
int32_t Aspose::Cells::Drawing::OleObjectCollection::Add(int32_t topRow, int32_t leftColumn, int32_t height, int32_t width, const Vector<uint8_t> &imageData)
```


| Parameter | Type | Description |
| --- | --- | --- |
| topRow | int32_t | Upper left row index. |
| leftColumn | int32_t | Upper left column index. |
| height | int32_t | Height of oleObject, in unit of pixel. |
| width | int32_t | Width of oleObject, in unit of pixel. |
| imageData | const Vector \<uint8_t\>\& | Image of ole object as byte array. |

## ReturnValue

[OleObject](../../oleobject/) object index.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [OleObjectCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
## OleObjectCollection::Add(int32_t, int32_t, int32_t, int32_t, const Vector \<uint8_t\>\&, const U16String\&) method


Adds a linked [OleObject](../../oleobject/) to the collection.

```cpp
int32_t Aspose::Cells::Drawing::OleObjectCollection::Add(int32_t topRow, int32_t leftColumn, int32_t height, int32_t width, const Vector<uint8_t> &imageData, const U16String &linkedFile)
```


| Parameter | Type | Description |
| --- | --- | --- |
| topRow | int32_t | Upper left row index. |
| leftColumn | int32_t | Upper left column index. |
| height | int32_t | Height of oleObject, in unit of pixel. |
| width | int32_t | Width of oleObject, in unit of pixel. |
| imageData | const Vector \<uint8_t\>\& | Image of ole object as byte array. |
| linkedFile | const U16String\& |  |

## ReturnValue

[OleObject](../../oleobject/) object index.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [OleObjectCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
## OleObjectCollection::Add(int32_t, int32_t, int32_t, int32_t, const Vector \<uint8_t\>\&, const char16_t*) method


Adds a linked [OleObject](../../oleobject/) to the collection.

```cpp
int32_t Aspose::Cells::Drawing::OleObjectCollection::Add(int32_t topRow, int32_t leftColumn, int32_t height, int32_t width, const Vector<uint8_t> &imageData, const char16_t *linkedFile)
```


| Parameter | Type | Description |
| --- | --- | --- |
| topRow | int32_t | Upper left row index. |
| leftColumn | int32_t | Upper left column index. |
| height | int32_t | Height of oleObject, in unit of pixel. |
| width | int32_t | Width of oleObject, in unit of pixel. |
| imageData | const Vector \<uint8_t\>\& | Image of ole object as byte array. |
| linkedFile | const char16_t* |  |

## ReturnValue

[OleObject](../../oleobject/) object index.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [OleObjectCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
