ShapeCollectionAddOleObjectFrame Method (Single, Single, Single, Single, IOleEmbeddedDataInfo)

Adds a new OLE object to the end of a collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.5.0.0 (21.5)
Syntax
public IOleObjectFrame AddOleObjectFrame(
	float x,
	float y,
	float width,
	float height,
	IOleEmbeddedDataInfo dataInfo
)

Parameters

x
Type: SystemSingle
X coordinate of a new OLE frame.
y
Type: SystemSingle
Y coordinate of a new OLE frame.
width
Type: SystemSingle
Width of a new OLE frame.
height
Type: SystemSingle
Height of a new OLE frame.
dataInfo
Type: Aspose.SlidesIOleEmbeddedDataInfo
Embedded data info IOleEmbeddedDataInfo.

Return Value

Type: IOleObjectFrame
Created OLE object.

Implements

IShapeCollectionAddOleObjectFrame(Single, Single, Single, Single, IOleEmbeddedDataInfo)
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