SetContextualSpacing

SetContextualSpacing(isContextualSpacing)

指定使用此段集前后的任何空间ApiParaPr#SetSpacingBeforeApiParaPr#SetSpacingAfter间距元素, 上段和下段相同样式时不应用, 分别影响顶部和底部间距 。

参数:

名称 类型 描述性
isContextualSpacing 布林安

真实值将激活段上下文间距

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oclipse.adText ("此段上下文间距设置为false")oParagraph.SetContextualSpacing(false)!odeptes = Api.Createlementsoclipse.adText ("此段上下文间距设置为false")oParagraph.SetContextualSpacing(false)!oDocument.Push(oParagraph)!odeptes = Api.Createlementsoclipse.adText ("此段上下文间距设置为false")oParagraph.SetContextualSpacing(false)!oDocument.Push(oParagraph)!odeptes = Api.Createlementsodtext ("此段上下文间距设置为'真'.)oParagraph.SetContextualSpacing(true)!oDocument.Push(oParagraph)!odeptes = Api.Createlementsodtext ("此段上下文间距设置为'真'.)oParagraph.SetContextualSpacing(true)!oDocument.Push(oParagraph)!builder.SaveFile("docx", "SetContextualSpacing.docx")!builder.CloseFile();

结果文档