如果 WPS 自动设置指定段落的段前间距,则该属性为
True。可读/写
Long 类型。
语法
表达式.SpaceBeforeAuto
表达式 一个代表 ParagraphFormat 对象的变量。
说明
如果仅将部分指定段落的 SpaceBeforeAuto 属性设置为 True,则返回 wdUndefined。该属性可被设置为 True 或
False。
如果将 SpaceBeforeAuto 设置为 True,则 SpaceBefore 属性将被忽略。
示例
本示例显示关于活动文档的 SpaceBeforeAuto 属性设置的报告。
示例代码 |
let saa = ActiveDocument.Range().ParagraphFormat.SpaceBeforeAuto
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.")
}
|