SetSpacingBefore

SetSpacingBefore(nBefore, [isBeforeAuto])

设置当前段前的间距eforeAuto参数值正确时,nfore值忽略if BeforeAuto参数未定义,则它将被解读为假

参数:

名称 类型 默认 描述性
前卫 树枝

区间值在当前段前以20s测量点(1/1440英吋)。

前自动 布林安 虚伪

真实值禁止当前段前的间距

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaromyStyle=ODocument.CreateStylevar OParaPr=omyStyle.GetParaProParaPr.SetSpacingBefore(1440)!varolements=ODocument.GetEplement0odText (“这是设置段前空格的例子 ”)ocept.adText)odTextodeptes = Api.Createlementsoclipse.AddTextoParagraph.SetStyle(oMyStyle)!oDocument.Push(oParagraph)!builder.SaveFile("docx", "SetSpacingBefore.docx")!builder.CloseFile();

结果文档