SetPageBreakBefore

SetPageBreakBefore(isPageBreakBefore)

指定文档使用折叠视图时,当前段内容取自文档新页起始点

参数:

名称 类型 描述性
isPageBreakBefore 布林安

真实值允许选项在文档新页起始时转换段内容

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaromyStyle=ODocument.CreateStylevar OParaPr=omyStyle.GetParaProParaPr.SetPageBreakBefore(true)!varolements=ODocument.GetEplement0odText (“这是在段落前设置分页实例 ”)odText ("第二段从新页开始,因为它前有分页符)oclipse.adText)odeptes = Api.Createlementsoclipse.adTextoParagraph.SetStyle(oMyStyle)!oDocument.Push(oParagraph)!builder.SaveFile("docx", "SetPageBreakBefore.docx")!builder.CloseFile();

结果文档