GetElementsCount

GetEplementsCount

返回当前文档中数个元素

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!varoccontent=odrawing.getdoccontentoDocContent.RemoveAllElements()!Odvictes =OdocContent.GetEplement0odtext ("我们从形状上删除所有元素并插入新段odeptes = Api.Createlementsodcent.GetEplementsCountoDocument.Push(oParagraph)!builder.SaveFile("docx", "GetElementsCount.docx")!builder.CloseFile();

结果文档