WPS 基础接口 > 文字 API 参考 > Document > 属性 > Document.AutoHyphenation 属性
如果代表指定文档已启动自动断字功能,则该属性值为 TrueBoolean 类型,可读写。

语法

表达式.AutoHyphenation

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

示例

本示例启动自动断字功能,断字区为 0.25 英寸。全为大写的单词不断字。

示例代码
ActiveDocument.HyphenationZone = InchesToPoints(0.25)
ActiveDocument.HyphenateCaps = false
ActiveDocument.AutoHyphenation = true


请参阅