DocumentBase.HyphenationZone 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置断字区域的宽度(以磅为单位)。
public int HyphenationZone { get; set; }
属性值
断字区域的宽度(以磅为单位)。
示例
下面的代码示例启用文档的自动断字功能,并将断字区设置为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 字的最大空间量。