获取区块

Getsections数组 }

返回文档中段对象集合

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0odText(新段)oParagraph.AddLineBreak()!adText (scell down查看新段)varosection1=ODocument.Createsectionodeptes = Api.CreatelementsodText ("这是新段中的段子")oDocument.Push(oParagraph)!Var区块=ODocument.Get区块odeptes = Api.Createlementsvar slassType = asections[1].GetClassTypeoclits.adText (Class类型:+slassType)oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetSections.docx")!builder.CloseFile();

结果文档