WPS 基础接口 > 文字 API 参考 > ParagraphFormat > 属性 > ParagraphFormat.SpaceAfterAuto 属性
如果 WPS 自动设置指定段落的段后间距,则该属性为 True。可读/写 Long 类型。

语法

表达式.SpaceAfterAuto

表达式   一个代表 ParagraphFormat 对象的变量。

说明

如果仅将部分指定段落的 SpaceAfterAuto 属性设置为 True,则返回 wdUndefined。该属性可被设置为 TrueFalse

如果将 SpaceAfterAuto 设置为 True,则 SpaceAfter 属性将被忽略。

示例

本示例显示关于活动文档的 SpaceAfterAuto 属性设置的报告。

示例代码
let saa = ActiveDocument.Range().ParagraphFormat.SpaceAfterAuto
switch(saa) {
    case 1:
	MsgBox("Spacing after paragraphs is handled automatically for all paragraphs.")
    case 0:
	MsgBox("Spacing after paragraphs is handled manually for all paragraphs.")
    case null:
	MsgBox("Spacing after paragraphs is handled automatically for some paragraphs,manually for some paragraphs.")
}


请参阅