DocumentBase.HyphenationZone 属性

定义

获取或设置断字区域的宽度(以磅为单位)。

public int HyphenationZone { get; set; }

属性值

Int32

断字区域的宽度(以磅为单位)。

示例

下面的代码示例启用文档的自动断字功能,并将断字区设置为36磅(0.5 英寸)。 若要使用此示例,请在 ThisDocument 文档级项目的类中运行它。

private void DocumentHyphenationZone()
{
    this.AutoHyphenation = true;
    this.HyphenationZone = 36;
}
Private Sub DocumentHyphenationZone()
    Me.AutoHyphenation = True
    Me.HyphenationZone = 36
End Sub 

注解

断字区指的是在行中最后一个单词的末尾和右边距之间 Microsoft Office 字的最大空间量。

适用于