Getfinal段

GetFinal区段api段}

返回文档最终段

参数:

这种方法没有任何参数

返回时间 :

类型
api段

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarosections=ODocument.Getfinalsectionvaroheader=osection.getheadervarodeptes =oheader.getEplement0odtext (“这是默认页眉中文本”)varOTextPr=ODocument.Get DefaultextProTextPr.SetFontSize(22)!oTextPr.SetLanguage("en-US")!oTextPr.SetFontFamily("Calibri")!var OParaPr=ODocument.Get DefaultParaProParaPr.SetSpacingLine(276, "auto")!oParaPr.SetSpacingAfter(200)!odeptements =ODocument.GetE元素0odText ('这是段内文本')!builder.SaveFile("docx", "GetFinalSection.docx")!builder.CloseFile();

结果文档