InsertOleObjectFrame

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)
ParameterTypeDescription
indexInt32The zero-based index at which OLE object should be inserted.
xSingleX coordinate of a new OLE frame.
ySingleY coordinate of a new OLE frame.
widthSingleWidth of a new OLE frame.
heightSingleHeight of a new OLE frame.
dataInfoIOleEmbeddedDataInfoEmbedded 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


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)
ParameterTypeDescription
indexInt32The zero-based index at which OLE object should be inserted.
xSingleX coordinate of a new OLE frame.
ySingleY coordinate of a new OLE frame.
widthSingleWidth of a new OLE frame.
heightSingleHeight of a new OLE frame.
classNameStringName of an OLE class.
pathStringPath to the linked file.

Return Value

Created OLE object.

See Also