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.

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