GetSpacingBefore

GetScapingBeore树枝}

返回当前段前值的间距

参数:

这种方法没有任何参数

返回时间 :

类型
树枝

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0odText (“这是设置段前空格的例子 ”)ocept.adText)odTextodeptes = Api.Createlementsoclipse.AddTextvar OParaPr=oDept.GetParaProParaPr.SetSpacingBefore(1440)!oParagraph.AddLineBreak()!varnSpaceing befores=OParaPr.GetSpaceing beforeodcept.adTextoDocument.Push(oParagraph)!builder.SaveFile("docx", "GetSpacingBefore.docx")!builder.CloseFile();

结果文档