GetContent

GetContentApiDocumentContent}

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

参数:

这种方法没有任何参数

返回时间 :

类型
ApiDocumentContent

实例

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

结果文档