GetEment元素

GetEplement(nPos)++ParagraphContent}

返回当前内线文本内容控件的一个元素

参数:

名称 类型 描述性
NPOs 数组

位置中必须定位内容

返回时间 :

类型
ParagraphContent

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoinlvlStoParagraph.AddInlineLvlSdt(oInlineLvlSdt)!输入nPos=0NPOS < 10++nPos/varcurRun=api.CreateRuncurRun.adText)oInlineLvlSdt.AddElement(curRun)!Var changeRun=OinlinelvlSt.GetElement(4)changeRun.SetBold(true)!oParagraph.AddLineBreak()!oParagraph.AddLineBreak()!oParagraph.AddLineBreak()!oddText (“我们添加了10文本运行到上线文本内容控制并改第五批, 与众不同builder.SaveFile("docx", "GetElement.docx")!builder.CloseFile();

结果文档