AddOleObjectFrame
Contents
[
Hide
]
ShapeCollection.AddOleObjectFrame method (1 of 2)
Adds a new OLE object to the end of a collection.
public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height,
IOleEmbeddedDataInfo dataInfo)
Parameter | Type | Description |
---|---|---|
x | Single | X coordinate of a new OLE frame. |
y | Single | Y coordinate of a new OLE frame. |
width | Single | Width of a new OLE frame. |
height | Single | Height of a new OLE frame. |
dataInfo | IOleEmbeddedDataInfo | Embedded data info IOleEmbeddedDataInfo . |
Return Value
Created OLE object.
Examples
This example demonstrates adding an OLE object to the end of a collection:
[C#]
byte[] fileData = File.ReadAllBytes("test.zip");
IEmbeddedDataInfo dataInfo = new EmbeddedDataInfo(fileData, "zip");
IOleObjectFrame oleObjectFrame = slidees.Shapes.AddOleObjectFrame(150, 20, 50, 50, dataInfo);
See Also
- interface IOleObjectFrame
- interface IOleEmbeddedDataInfo
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
ShapeCollection.AddOleObjectFrame method (2 of 2)
Adds a new OLE object to the end of a collection.
public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height,
string className, string path)
Parameter | Type | Description |
---|---|---|
x | Single | X coordinate of a new OLE frame. |
y | Single | Y coordinate of a new OLE frame. |
width | Single | Width of a new OLE frame. |
height | Single | Height of a new OLE frame. |
className | String | Name of an OLE class. |
path | String | Path to the linked file. |
Return Value
Created OLE object.
See Also
- interface IOleObjectFrame
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides