AddOleObjectFrame

IShapeCollection.AddOleObjectFrame method (1 of 2)

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

public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height, 
    IOleEmbeddedDataInfo dataInfo)
Parameter Type Description
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.

See Also


IShapeCollection.AddOleObjectFrame method (2 of 2)

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

public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height, 
    string className, string path)
Parameter Type Description
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