GetEment元素

GetEplement(nPos)++ParagraphContent}

返回段元素使用指定位置

参数:

名称 类型 描述性
NPOs 数组

位置中必须定位内容

返回时间 :

类型
ParagraphContent

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarodeptes=api.CreateleoParagraph.RemoveAllElements()!var ORun=api.CreateRunORun.AddText切勿忘记空格尾部与第二个空格分离)oParagraph.AddElement(oRun)!ORun=Api.CreateRunORun.AddText ("这是第二运行文本后置果实端端需要空间)oParagraph.AddElement(oRun)!ORun=Api.CreateRunORun.AddText ("这是第三运行文本结束段数oParagraph.AddElement(oRun)!ORUNDEDGEPLEoRun.SetBold(true)!oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetElement.docx")!builder.CloseFile();

结果文档