AddOleObjectFrame

AddOleObjectFrame(float, float, float, float, IOleEmbeddedDataInfo)

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

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


AddOleObjectFrame(float, float, float, float, string, string)

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)
ParameterTypeDescription
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