GetLastRunWithText

获取LastRunOntextspiRun}

返回当前段落中带文本的上龙

参数:

这种方法没有任何参数

返回时间 :

类型
spiRun

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0letnRunService=0NRun提高 < 5++nRun提高){vrOrun=api.CreateRunORun.AddTextoParagraph.Push(oRun)!oParagraph.AddLineBreak()!Var OLastRunLastRun.adTextbuilder.SaveFile("docx", "GetLastRunWithText.docx")!builder.CloseFile();

结果文档