IShapeCollectionInsertOleObjectFrame Method (Int32, Single, Single, Single, Single, IOleEmbeddedDataInfo)

Creates a new OLE object and inserts it to a collection at the specified index.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IOleObjectFrame InsertOleObjectFrame(
	int index,
	float x,
	float y,
	float width,
	float height,
	IOleEmbeddedDataInfo dataInfo
)

Parameters

index
Type: SystemInt32
The zero-based index at which OLE object should be inserted.
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.
See Also