类表示词表容器
名称 | 描述性 |
添加元素 | 添加段或表或块Lvl内容控件 |
GetClassType系统 | 返回类型ApiDocumentCente类 |
GetEment元素 | 函数返回文档中的位置 |
GetElementsCount | 返回当前文档中数个元素 |
推送 | 按段或表实际添加到文档中 |
RemoveAllElements | 从当前文档或从当前文档元素删除所有元素
|
删除元素 | 使用指定位置删除元素 |
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorkshevaroccontentssvarodente=occontent.getEplement0odText (#1段)!letnPara提高=1NPara提高 < 5++nPara增量+++++oDocContent.Push(oParagraph)!} oDocContent.RemoveElement(2)!odeptes = Api.CreatelementsodText ("我们删除3段,检查上面内容")oDocContent.Push(oParagraph)!var slassType=occontent.getClassTypeoParagraph.AddLineBreak()!odstext (slass类型=+ssstype)oParagraph.AddLineBreak()!odcent.GetEplementsCountoParagraph.AddLineBreak()!builder.SaveFile("xlsx", "ApiDocumentContent.xlsx")!builder.CloseFile();