ConsecutiveHyphensLimit 属性

       

返回或设置以连字符结束的连续行的最大数目。Long 类型,可读写。

注意   如果将此属性设置为 0(零),则以连字符结束的连续行可以是任何数目。

示例

本示例为 MyReport.doc 设置自动断字功能并将以连字符结束的连续行的数目限制为 2 个。

With Documents("MyReport.doc")
    .AutoHyphenation = True
    .ConsecutiveHyphensLimit = 2
End With

本示例不限制以连字符结束的连续行的数目。

ActiveDocument.ConsecutiveHyphensLimit = 0