DocumentBase.HyphenationZone 属性
获取或设置断字区域的宽度(以磅为单位)。
命名空间: Microsoft.Office.Tools.Word
程序集: Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)
语法
声明
Public Property HyphenationZone As Integer
public int HyphenationZone { get; set; }
属性值
类型:System.Int32
断字区域的宽度(以磅为单位)。
备注
断字区域是 Microsoft Office Word 在一行中最后一个单词的末尾与右边距之间保留的最大空间。
示例
下面的代码示例针对文档启用自动断字并将断字区域设置为 36 磅(0.5 英寸)。 若要使用此示例,请从文档级项目内的 ThisDocument 类中运行此示例。
Private Sub DocumentHyphenationZone()
Me.AutoHyphenation = True
Me.HyphenationZone = 36
End Sub
private void DocumentHyphenationZone()
{
this.AutoHyphenation = true;
this.HyphenationZone = 36;
}
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。