InsertOleObjectFrame

InsertOleObjectFrame(int, float, float, float, float, IOleEmbeddedDataInfo)

创建一个新的OLE对象,并将其插入到指定索引的集合中。

public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height, 
    IOleEmbeddedDataInfo dataInfo)
参数类型描述
indexInt32OLE对象应插入的零基索引。
xSingle新OLE框架的X坐标。
ySingle新OLE框架的Y坐标。
widthSingle新OLE框架的宽度。
heightSingle新OLE框架的高度。
dataInfoIOleEmbeddedDataInfo嵌入数据信息 IOleEmbeddedDataInfo

返回值

创建的OLE对象。

另见


InsertOleObjectFrame(int, float, float, float, float, string, string)

创建一个新的OLE对象,并将其插入到指定索引的集合中。

public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height, 
    string className, string path)
参数类型描述
indexInt32OLE对象应插入的零基索引。
xSingle新OLE框架的X坐标。
ySingle新OLE框架的Y坐标。
widthSingle新OLE框架的宽度。
heightSingle新OLE框架的高度。
classNameStringOLE类的名称。
pathString链接文件的路径。

返回值

创建的OLE对象。

另见