创建段

创建区段+++api段......

创建新文档段结束允许设置当前段本地参数-页大小、页脚、页眉、列等

参数:

名称 类型 描述性
段 次 spi段

段后插入新文档段段落必须在文档中

返回时间 :

类型
api段空区

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0odText(新段)oParagraph.AddLineBreak()!adText (scell down查看新段)varosection=ODocument.CreatesectionoSection.SetEqualColumns(1, 720)!oSection.SetPageSize(12240, 15840)!setPageMargins1440144014401440oSection.SetHeaderDistance(720)!oSection.SetFooterDistance(576)!odeptes = Api.CreatelementsoParagraph.SetSpacingBefore(100, true)!oParagraph.SetSpacingAfter(360)!odText ("这是新段中的段子")oDocument.Push(oParagraph)!builder.SaveFile("docx", "CreateSection.docx")!builder.CloseFile();

结果文档