OleObjectCollection.AddLinkedOleObject(Cell, Single, Single, String, OleObjectType, SpreadsheetImageSource) Method
Inserts a linked OLE object into the specified position.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v25.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
OleObject AddLinkedOleObject(
Cell topLeftCell,
float width,
float height,
string fileName,
OleObjectType oleObjectType,
SpreadsheetImageSource objectRepresentation = null
)
Parameters
Name | Type | Description |
---|---|---|
topLeftCell | Cell | A cell to which the OLE object image’s top-left corner is anchored. |
width | Single | The OLE object’s image width. |
height | Single | The OLE object’s image height. |
fileName | String | A path (including the file name) of the file to link. |
oleObjectType | OleObjectType | OLE object content type. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
objectRepresentation | SpreadsheetImageSource | null | Specifies the image to depict the OLE object on the worksheet. If null, a white boilerplate image is used. |
Returns
Type | Description |
---|---|
OleObject | The created OLE object. |
See Also