InsertOleObjectFrame
Contents
[
Hide
]InsertOleObjectFrame(int, float, float, float, float, IOleEmbeddedDataInfo)
Creates a new OLE object and inserts it to a collection at the specified index.
public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height,
IOleEmbeddedDataInfo dataInfo)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which OLE object should be inserted. |
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 inserting an OLE object at the second index:
[C#]
byte[] fileData = File.ReadAllBytes("test.zip");
IOleDataInfo dataInfo = new OleDataInfo(fileData, "zip");
IOleObjectFrame oleObjectFrame = slidees.Shapes.AddOleObjectFrame(2, 150, 20, 50, 50, dataInfo);
See Also
- interface IOleObjectFrame
- interface IOleEmbeddedDataInfo
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertOleObjectFrame(int, float, float, float, float, string, string)
Creates a new OLE object and inserts it to a collection at the specified index.
public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height,
string className, string path)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which OLE object should be inserted. |
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