指定使用此段集前后的任何空间ApiParaPr#SetSpacingBefore或ApiParaPr#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();