GetClassType系统

GetClassType()+++

返回类型ApiDocumentCente类

参数:

这种方法没有任何参数

返回时间 :

类型
"documentContent"

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!varoccontent=odrawing.getdoccontentoDocContent.RemoveAllElements()!odeptes = Api.CreatelementsoParagraph.SetJc("left")!odtext ("我们从形状上删除所有元素并插入新段oDocContent.AddElement(0, oParagraph)!var slassType=occontent.getClassTypeodeptes = Api.Createlementsodstext (slass类型=+ssstype)oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetClassType.docx")!builder.CloseFile();

结果文档