AddOleObjectFrame

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

Creates a new OLE object frame and adds it to the end of the shape collection.

public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height, 
    IOleEmbeddedDataInfo dataInfo)
ParameterTypeDescription
xSingleThe x-coordinate of the new OLE frame, in points.
ySingleThe y-coordinate of the new OLE frame, in points.
widthSingleThe width of the new OLE frame, in points.
heightSingleThe height of the new OLE frame, in points.
dataInfoIOleEmbeddedDataInfoThe embedded OLE data information (IOleEmbeddedDataInfo).

Return Value

The newly created IOleObjectFrame.

See Also


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

Creates a new OLE object frame and adds it to the end of the shape collection.

public IOleObjectFrame AddOleObjectFrame(float x, float y, float width, float height, 
    string className, string path)
ParameterTypeDescription
xSingleThe x-coordinate of the new OLE frame, in points.
ySingleThe y-coordinate of the new OLE frame, in points.
widthSingleThe width of the new OLE frame, in points.
heightSingleThe height of the new OLE frame, in points.
classNameStringThe class name of the OLE object.
pathStringThe path to the linked file.

Return Value

The newly created IOleObjectFrame.

See Also