GetSpacingBefore

GetScapingBeore树枝}

继承发件人 :ApiParaPr#GetSpacingBefore

返回当前段前值的间距

参数:

这种方法没有任何参数

返回时间 :

类型
树枝

实例

拷贝代码
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssvarodente=occontent.getEplement0odText ("此例设置段前空格")!ocept.adText)odTextvarodis2=api.Createleocent2.AddText ("这是第二段 离第一段有一英寸距离.")oParagraph2.SetSpacingBefore(1440)!oDocContent.Push(oParagraph2)!varnSpaceing beforeodeptes = Api.Createlementsodcept.adTextoDocContent.Push(oParagraph)!builder.SaveFile("xlsx", "GetSpacingBefore.xlsx")!builder.CloseFile();

结果文档