WPS 基础接口 > 文字 API 参考 > Options > 属性 > Options.AutoFormatApplyFirstIndents 属性
如果为 True,则 WPS 在自动设置文档或区域的格式时,用首行缩进替换在段落开始处输入的空格。Boolean 类型,可读写。

语法

表达式.AutoFormatApplyFirstIndents

表达式   返回 Options 对象的表达式。

示例

本示例设置 WPS 用首行缩进替换在段落开始处输入的空格,并自动设置选定区域的格式。

示例代码
Options.AutoFormatApplyFirstIndents = true
Selection.Range.AutoFormat()


请参阅