## OleObject::SetEmbeddedObject(bool, const Vector \<uint8_t\>\&, const U16String\&, bool, const U16String\&) method


Sets embedded object data.

```cpp
void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const U16String &sourceFileName, bool displayAsIcon, const U16String &label)
```


| Parameter | Type | Description |
| --- | --- | --- |
| linkToFile | bool | Indicates whether the object links to the file. If true, the parameter objectData is ignored. |
| objectData | const Vector \<uint8_t\>\& | The embedded object data. |
| sourceFileName | const U16String\& | The file name. |
| displayAsIcon | bool | Indicates whether diplaying object as an icon. If true, the original image data will be covered by icon. |
| label | const U16String\& | The icon label. Only works when displayAsIcon as true. |

## See Also

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


Sets embedded object data.

```cpp
void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const char16_t *sourceFileName, bool displayAsIcon, const char16_t *label)
```


| Parameter | Type | Description |
| --- | --- | --- |
| linkToFile | bool | Indicates whether the object links to the file. If true, the parameter objectData is ignored. |
| objectData | const Vector \<uint8_t\>\& | The embedded object data. |
| sourceFileName | const char16_t* | The file name. |
| displayAsIcon | bool | Indicates whether diplaying object as an icon. If true, the original image data will be covered by icon. |
| label | const char16_t* | The icon label. Only works when displayAsIcon as true. |

## See Also

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


Sets embedded object data.

```cpp
void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const U16String &sourceFileName, bool displayAsIcon, const U16String &label, bool updateIcon)
```


| Parameter | Type | Description |
| --- | --- | --- |
| linkToFile | bool | Indicates whether the object links to the file. If true, the parameter objectData is ignored. |
| objectData | const Vector \<uint8_t\>\& | The embedded object data. |
| sourceFileName | const U16String\& | The file name. |
| displayAsIcon | bool | Indicates whether diplaying object as an icon. If true, the original image data will be covered by icon. |
| label | const U16String\& | The icon label. Only works when displayAsIcon as true. |
| updateIcon | bool | Indicates whether automatically updating icon. |
## Remarks



As **Aspose** can update embedd all file icons, so it's better that you can add correct icon with *updateIcon*  as false. 
## See Also

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


Sets embedded object data.

```cpp
void Aspose::Cells::Drawing::OleObject::SetEmbeddedObject(bool linkToFile, const Vector<uint8_t> &objectData, const char16_t *sourceFileName, bool displayAsIcon, const char16_t *label, bool updateIcon)
```


| Parameter | Type | Description |
| --- | --- | --- |
| linkToFile | bool | Indicates whether the object links to the file. If true, the parameter objectData is ignored. |
| objectData | const Vector \<uint8_t\>\& | The embedded object data. |
| sourceFileName | const char16_t* | The file name. |
| displayAsIcon | bool | Indicates whether diplaying object as an icon. If true, the original image data will be covered by icon. |
| label | const char16_t* | The icon label. Only works when displayAsIcon as true. |
| updateIcon | bool | Indicates whether automatically updating icon. |
## Remarks



As **Aspose** can update embedd all file icons, so it's better that you can add correct icon with *updateIcon*  as false. 
## See Also

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