GetDocCont

GetDocContentApiDocumentContent}

返回形状内部内容并插入段落或文本运行

参数:

这种方法没有任何参数

返回时间 :

类型
ApiDocumentContent

实例

拷贝代码
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontent=oshape.getdoccontentoDocContent.RemoveAllElements()!varodeptes=api.CreateleoParagraph.SetJc("left")!odtext ("我们从形状上删除所有元素并插入新段oDocContent.Push(oParagraph)!builder.SaveFile("xlsx", "GetDocContent.xlsx")!builder.CloseFile();

结果文档